commit | 183fd40987c3fdc209503700aa5b48b8a7dc3bf8 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Thu Sep 02 15:09:44 1999 +0000 |
committer | Guido van Rossum <guido@python.org> | Thu Sep 02 15:09:44 1999 +0000 |
tree | 06c81017277db068fece769bb8359e153a3370d3 | |
parent | 65f4a3b1738dbe7c32a3fd4bad84c7c4d4a30d45 [diff] |
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 fdfdc43..6704f9b 100644 --- a/Lib/pprint.py +++ b/Lib/pprint.py
@@ -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)