[Python-checkins] r45301 - python/branches/release24-maint/Lib/logging/__init__.py
vinay.sajip
python-checkins at python.org
Wed Apr 12 12:02:01 CEST 2006
Author: vinay.sajip
Date: Wed Apr 12 12:02:00 2006
New Revision: 45301
Modified:
python/branches/release24-maint/Lib/logging/__init__.py
Log:
StreamHandler now checks explicitly for None before using sys.stderr as the stream (see SF bug #1463840).
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 Wed Apr 12 12:02:00 2006
@@ -706,7 +706,7 @@
If strm is not specified, sys.stderr is used.
"""
Handler.__init__(self)
- if not strm:
+ if strm is None:
strm = sys.stderr
self.stream = strm
self.formatter = None
More information about the Python-checkins
mailing list