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
eb9d5ad6
Kaydet (Commit)
eb9d5ad6
authored
Ock 21, 2011
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #10949: Improved robustness of rotating file handlers.
üst
a970e622
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
handlers.py
Lib/logging/handlers.py
+2
-0
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/logging/handlers.py
Dosyayı görüntüle @
eb9d5ad6
...
...
@@ -114,6 +114,7 @@ class RotatingFileHandler(BaseRotatingHandler):
"""
if
self
.
stream
:
self
.
stream
.
close
()
self
.
stream
=
None
if
self
.
backupCount
>
0
:
for
i
in
range
(
self
.
backupCount
-
1
,
0
,
-
1
):
sfn
=
"
%
s.
%
d"
%
(
self
.
baseFilename
,
i
)
...
...
@@ -313,6 +314,7 @@ class TimedRotatingFileHandler(BaseRotatingHandler):
"""
if
self
.
stream
:
self
.
stream
.
close
()
self
.
stream
=
None
# get the time that this sequence started at and make it a TimeTuple
t
=
self
.
rolloverAt
-
self
.
interval
if
self
.
utc
:
...
...
Misc/NEWS
Dosyayı görüntüle @
eb9d5ad6
...
...
@@ -37,6 +37,8 @@ Core and Builtins
Library
-------
- Issue #10949: Improved robustness of rotating file handlers.
- Issue #10955: Fix a potential crash when trying to mmap() a file past its
length. Initial patch by Ross Lagerwall.
...
...
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