summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/pprint.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/pprint.py b/Lib/pprint.py
index da6ab1a..f77a0e2 100644
--- a/Lib/pprint.py
+++ b/Lib/pprint.py
@@ -103,7 +103,8 @@ class PrettyPrinter:
self._stream = _sys.stdout
def pprint(self, object):
- self._stream.write(self.pformat(object) + "\n")
+ self._format(object, self._stream, 0, 0, {}, 0)
+ self._stream.write("\n")
def pformat(self, object):
sio = _StringIO()