diff options
author | Guido van Rossum <guido@python.org> | 1999-09-02 15:09:44 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-09-02 15:09:44 (GMT) |
commit | 183fd40987c3fdc209503700aa5b48b8a7dc3bf8 (patch) | |
tree | 06c81017277db068fece769bb8359e153a3370d3 | |
parent | 65f4a3b1738dbe7c32a3fd4bad84c7c4d4a30d45 (diff) | |
download | cpython-183fd40987c3fdc209503700aa5b48b8a7dc3bf8.zip cpython-183fd40987c3fdc209503700aa5b48b8a7dc3bf8.tar.gz cpython-183fd40987c3fdc209503700aa5b48b8a7dc3bf8.tar.bz2 |
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.
-rw-r--r-- | Lib/pprint.py | 3 |
1 files changed, 2 insertions, 1 deletions
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) |