From: Guido van Rossum Date: Thu, 2 Sep 1999 15:09:44 +0000 (+0000) Subject: Fix indent error in __format(): del context[objid] at the end should X-Git-Tag: v1.6a1~953 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=183fd40987c3fdc209503700aa5b48b8a7dc3bf8;p=python 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. --- diff --git a/Lib/pprint.py b/Lib/pprint.py index fdfdc4395f..6704f9b23f 100644 --- a/Lib/pprint.py +++ b/Lib/pprint.py @@ -176,7 +176,8 @@ class PrettyPrinter: 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)