[Python-checkins] cpython (merge 3.2 -> 3.3): Issue #9501: Merged fix from 3.2.

vinay.sajip python-checkins at python.org
Tue Jan 15 18:57:39 CET 2013


http://hg.python.org/cpython/rev/3161a94ff73c
changeset: 81533:3161a94ff73c
branch: 3.3
parent: 81528:927352d7e994
parent: 81532:8eac88f49cc0
user: Vinay Sajip <vinay_sajip at yahoo.co.uk>
date: Tue Jan 15 17:56:43 2013 +0000
summary:
 Issue #9501: Merged fix from 3.2.
files:
 Lib/logging/__init__.py | 3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py
--- a/Lib/logging/__init__.py
+++ b/Lib/logging/__init__.py
@@ -708,7 +708,8 @@
 # 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:
+ if (_acquireLock is not None and _handlerList is not None and
+ _releaseLock is not None):
 _acquireLock()
 try:
 if wr in _handlerList:
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /