[Python-checkins] r53383 - python/branches/release24-maint/Lib/logging/__init__.py

vinay.sajip python-checkins at python.org
Thu Jan 11 21:08:56 CET 2007


Author: vinay.sajip
Date: Thu Jan 11 21:08:56 2007
New Revision: 53383
Modified:
 python/branches/release24-maint/Lib/logging/__init__.py
Log:
Backported change in shutdown(); now takes an optional handler-list argument.
Modified: python/branches/release24-maint/Lib/logging/__init__.py
==============================================================================
--- python/branches/release24-maint/Lib/logging/__init__.py	(original)
+++ python/branches/release24-maint/Lib/logging/__init__.py	Thu Jan 11 21:08:56 2007
@@ -1318,14 +1318,14 @@
 """
 root.manager.disable = level
 
-def shutdown():
+def shutdown(handlerList=_handlerList):
 """
 Perform any cleanup actions in the logging system (e.g. flushing
 buffers).
 
 Should be called at application exit.
 """
- for h in _handlerList[:]: # was _handlers.keys():
+ for h in handlerList[:]:
 #errors might occur, for example, if files are locked
 #we just ignore them if raiseExceptions is not set
 try:


More information about the Python-checkins mailing list

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