]> granicus.if.org Git - python/commitdiff
StreamHandler now checks explicitly for None before using sys.stderr as the stream...
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Tue, 11 Apr 2006 21:42:00 +0000 (21:42 +0000)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Tue, 11 Apr 2006 21:42:00 +0000 (21:42 +0000)
Lib/logging/__init__.py

index bc215439b4761b02f4f2cc8172c21d436d7ca25a..582b781bc7ae5c8ec5f6b662fc2d2dabd955b0b9 100644 (file)
@@ -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