]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
StreamHandler now checks explicitly for None before using sys.stderr as the stream...
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Wed, 12 Apr 2006 10:02:00 +0000 (10:02 +0000)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Wed, 12 Apr 2006 10:02:00 +0000 (10:02 +0000)
Lib/logging/__init__.py

index a7210e1a9c4ff9ba65ac05eb3e6c98040803d82b..07f1add37ace601f1bd6c84d1f777efc17b6f691 100644 (file)
@@ -706,7 +706,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