[Python-checkins] r45283 - python/trunk/Lib/logging/__init__.py
vinay.sajip
python-checkins at python.org
Tue Apr 11 23:42:01 CEST 2006
Author: vinay.sajip
Date: Tue Apr 11 23:42:00 2006
New Revision: 45283
Modified:
python/trunk/Lib/logging/__init__.py
Log:
StreamHandler now checks explicitly for None before using sys.stderr as the stream (see SF bug #1463840).
Modified: python/trunk/Lib/logging/__init__.py
==============================================================================
--- python/trunk/Lib/logging/__init__.py (original)
+++ python/trunk/Lib/logging/__init__.py Tue Apr 11 23:42:00 2006
@@ -719,7 +719,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