Replace boolean test with is None.

This commit is contained in:
Raymond Hettinger 2002-06-01 16:07:16 +00:00
parent 793d4b4936
commit 16e3c427f3
7 changed files with 12 additions and 12 deletions

View file

@ -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