diff Lib/pprint.py @ 11253:c6bdf032b705 legacy-trunk

Fix indent error in __format(): del context[objid] at the end should be executed in all cases, not just when it's not a list, tuple or dict. Discovered by Christian Tismer.
author Guido van Rossum <guido@python.org>
date Thu, 02 Sep 1999 15:09:44 +0000
parents e3397ae88129
children c87b861c6ec6
line wrap: on
line diff
--- a/Lib/pprint.py	Sun Aug 29 18:23:32 1999 +0000
+++ b/Lib/pprint.py	Thu Sep 02 15:09:44 1999 +0000
@@ -176,7 +176,8 @@
 
         else:
             stream.write(rep)
-            del context[objid]
+
+        del context[objid]
 
     def __repr(self, object, context, level):
         repr, readable = _safe_repr(object, context, self.__depth, level)