summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2006-04-11 21:42:00 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2006-04-11 21:42:00 (GMT)
commit502348d010be73a20cd5d6ce5512746198baa711 (patch)
tree246de91775417fd2d922cc8f8714955ccc5d9e9c
parentcbd6f1896d3f5c960f1e93ea98b005a4778c2d07 (diff)
downloadcpython-502348d010be73a20cd5d6ce5512746198baa711.zip
cpython-502348d010be73a20cd5d6ce5512746198baa711.tar.gz
cpython-502348d010be73a20cd5d6ce5512746198baa711.tar.bz2
StreamHandler now checks explicitly for None before using sys.stderr as the stream (see SF bug #1463840).
-rw-r--r--Lib/logging/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py
index bc21543..582b781 100644
--- a/Lib/logging/__init__.py
+++ b/Lib/logging/__init__.py
@@ -719,7 +719,7 @@ class StreamHandler(Handler):
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