From 183fd40987c3fdc209503700aa5b48b8a7dc3bf8 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 2 Sep 1999 15:09:44 +0000 Subject: 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. --- Lib/pprint.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/pprint.py b/Lib/pprint.py index fdfdc43..6704f9b 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) -- cgit v0.12