diff Lib/pprint.py @ 23622:5edd80726d96 legacy-trunk

Replace boolean test with is None.
author Raymond Hettinger <python@rcn.com>
date Sat, 01 Jun 2002 16:07:16 +0000
parents e2f2187c3d2c
children e5ecef5a123a
line wrap: on
line diff
--- a/Lib/pprint.py	Sat Jun 01 14:25:41 2002 +0000
+++ b/Lib/pprint.py	Sat Jun 01 16:07:16 2002 +0000
@@ -101,7 +101,7 @@
         self.__depth = depth
         self.__indent_per_level = indent
         self.__width = width
-        if stream:
+        if stream is not None:
             self.__stream = stream
         else:
             self.__stream = sys.stdout