Commit 502348d0 authored by Vinay Sajip's avatar Vinay Sajip

StreamHandler now checks explicitly for None before using sys.stderr as the...

StreamHandler now checks explicitly for None before using sys.stderr as the stream (see SF bug #1463840).
parent cbd6f189
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment