[Python-checkins] r42258 - python/trunk/Lib/logging/__init__.py
vinay.sajip
python-checkins at python.org
Tue Feb 7 14:55:55 CET 2006
Author: vinay.sajip
Date: Tue Feb 7 14:55:52 2006
New Revision: 42258
Modified:
python/trunk/Lib/logging/__init__.py
Log:
Removed defensive test in Handler.close
Modified: python/trunk/Lib/logging/__init__.py
==============================================================================
--- python/trunk/Lib/logging/__init__.py (original)
+++ python/trunk/Lib/logging/__init__.py Tue Feb 7 14:55:52 2006
@@ -41,8 +41,8 @@
__author__ = "Vinay Sajip <vinay_sajip at red-dove.com>"
__status__ = "beta"
-__version__ = "0.4.9.7"
-__date__ = "07 October 2005"
+__version__ = "0.4.9.9"
+__date__ = "06 February 2006"
#---------------------------------------------------------------------------
# Miscellaneous module data
@@ -671,8 +671,7 @@
#get the module data lock, as we're updating a shared structure.
_acquireLock()
try: #unlikely to raise an exception, but you never know...
- if _handlers.has_key(self):
- del _handlers[self]
+ del _handlers[self]
_handlerList.remove(self)
finally:
_releaseLock()
More information about the Python-checkins
mailing list