From 16e3c427f35589ac3b83e8c13a8ec6495ec6cfa1 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sat, 1 Jun 2002 16:07:16 +0000 Subject: Replace boolean test with is None. --- Lib/pprint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/pprint.py') 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 -- cgit v1.2.1