summaryrefslogtreecommitdiffstats
path: root/Lib/pprint.py
diff options
context:
space:
mode:
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 1c11593..523572b 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