diff options
author | Raymond Hettinger <python@rcn.com> | 2002-06-01 16:07:16 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2002-06-01 16:07:16 (GMT) |
commit | 16e3c427f35589ac3b83e8c13a8ec6495ec6cfa1 (patch) | |
tree | d48f5e5b73a5124cabe347106a331ad8085c0064 /Lib/pprint.py | |
parent | 793d4b49361a010e4baa485ec77e3adc430f0236 (diff) | |
download | cpython-16e3c427f35589ac3b83e8c13a8ec6495ec6cfa1.zip cpython-16e3c427f35589ac3b83e8c13a8ec6495ec6cfa1.tar.gz cpython-16e3c427f35589ac3b83e8c13a8ec6495ec6cfa1.tar.bz2 |
Replace boolean test with is None.
Diffstat (limited to 'Lib/pprint.py')
-rw-r--r-- | Lib/pprint.py | 2 |
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 |