Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
4bbab2bd
Kaydet (Commit)
4bbab2bd
authored
Tem 08, 2004
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
FileHandler now stores the basename as an absolute path (fix for SF #982049)
üst
081483cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
__init__.py
Lib/logging/__init__.py
+4
-2
No files found.
Lib/logging/__init__.py
Dosyayı görüntüle @
4bbab2bd
...
...
@@ -37,7 +37,7 @@ except ImportError:
__author__
=
"Vinay Sajip <vinay_sajip@red-dove.com>"
__status__
=
"beta"
__version__
=
"0.4.9.3"
__date__
=
"0
3
July 2004"
__date__
=
"0
8
July 2004"
#---------------------------------------------------------------------------
# Miscellaneous module data
...
...
@@ -709,7 +709,9 @@ class FileHandler(StreamHandler):
Open the specified file and use it as the stream for logging.
"""
StreamHandler
.
__init__
(
self
,
open
(
filename
,
mode
))
self
.
baseFilename
=
filename
#keep the absolute path, otherwise derived classes which use this
#may come a cropper when the current directory changes
self
.
baseFilename
=
os
.
path
.
abspath
(
filename
)
self
.
mode
=
mode
def
close
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment