Skip to content

Commit e0f8592

Browse files
committed
Removed defensive test in Handler.close
1 parent f0a95ec commit e0f8592

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Lib/logging/__init__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141

4242
__author__ = "Vinay Sajip <vinay_sajip@red-dove.com>"
4343
__status__ = "beta"
44-
__version__ = "0.4.9.7"
45-
__date__ = "07 October 2005"
44+
__version__ = "0.4.9.9"
45+
__date__ = "06 February 2006"
4646

4747
#---------------------------------------------------------------------------
4848
# Miscellaneous module data
@@ -671,8 +671,7 @@ def close(self):
671671
#get the module data lock, as we're updating a shared structure.
672672
_acquireLock()
673673
try: #unlikely to raise an exception, but you never know...
674-
if _handlers.has_key(self):
675-
del _handlers[self]
674+
del _handlers[self]
676675
_handlerList.remove(self)
677676
finally:
678677
_releaseLock()

0 commit comments

Comments
 (0)