diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2006-02-07 13:55:52 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2006-02-07 13:55:52 (GMT) |
commit | e0f85926d676d7284eef9cb06c825ae8d1a54469 (patch) | |
tree | 4d15d4e99c758add644c63814b8cf67621bc0a75 /Lib | |
parent | f0a95eca45b6a56c0eac0ed0fee643c0a8ce9f24 (diff) | |
download | cpython-e0f85926d676d7284eef9cb06c825ae8d1a54469.zip cpython-e0f85926d676d7284eef9cb06c825ae8d1a54469.tar.gz cpython-e0f85926d676d7284eef9cb06c825ae8d1a54469.tar.bz2 |
Removed defensive test in Handler.close
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/logging/__init__.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index 9fa8797..da4c192 100644 --- a/Lib/logging/__init__.py +++ b/Lib/logging/__init__.py @@ -41,8 +41,8 @@ except ImportError: __author__ = "Vinay Sajip <vinay_sajip@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 @@ class Handler(Filterer): #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() |