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
1ddd51fc
Kaydet (Commit)
1ddd51fc
authored
Agu 23, 2010
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #9501: Fixed logging regressions in cleanup code.
üst
9d0eaac1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
8 deletions
+22
-8
__init__.py
Lib/logging/__init__.py
+20
-8
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/logging/__init__.py
Dosyayı görüntüle @
1ddd51fc
...
...
@@ -617,12 +617,16 @@ def _removeHandlerRef(wr):
"""
Remove a handler reference from the internal cleanup list.
"""
_acquireLock
()
try
:
if
wr
in
_handlerList
:
_handlerList
.
remove
(
wr
)
finally
:
_releaseLock
()
# This function can be called during module teardown, when globals are
# set to None. If _acquireLock is None, assume this is the case and do
# nothing.
if
_acquireLock
is
not
None
:
_acquireLock
()
try
:
if
wr
in
_handlerList
:
_handlerList
.
remove
(
wr
)
finally
:
_releaseLock
()
def
_addHandlerRef
(
handler
):
"""
...
...
@@ -1612,8 +1616,16 @@ def shutdown(handlerList=_handlerList):
#we just ignore them if raiseExceptions is not set
try
:
h
=
wr
()
h
.
flush
()
h
.
close
()
if
h
:
try
:
h
.
flush
()
h
.
close
()
except
(
IOError
,
ValueError
):
# Ignore errors which might be caused
# because handlers have been closed but
# references to them are still around at
# application exit.
pass
except
:
if
raiseExceptions
:
raise
...
...
Misc/NEWS
Dosyayı görüntüle @
1ddd51fc
...
...
@@ -31,6 +31,8 @@ Core and Builtins
Library
-------
- Issue #9501: Fixed logging regressions in cleanup code.
- Issue #9214: Set operations on KeysView or ItemsView in the collections
module now correctly return a set. (Patch by Eli Bendersky.)
...
...
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