summaryrefslogtreecommitdiff
path: root/Lib/pprint.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2002-06-01 16:07:16 +0000
committerRaymond Hettinger <python@rcn.com>2002-06-01 16:07:16 +0000
commite3a032af65863e1dcfa567e5bd597206852285fa (patch)
tree690c936621f521b9952c15d6e820256771d2cca1 /Lib/pprint.py
parentb107b91918709688044030d2e2a50a10d9450580 (diff)
downloadcpython-e3a032af65863e1dcfa567e5bd597206852285fa.tar.gz
Replace boolean test with is None.
Diffstat (limited to 'Lib/pprint.py')
-rw-r--r--Lib/pprint.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pprint.py b/Lib/pprint.py
index 1c1159315f..523572ba89 100644
--- a/Lib/pprint.py
+++ b/Lib/pprint.py
@@ -101,7 +101,7 @@ class PrettyPrinter:
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