mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
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.
This commit is contained in:
parent
65f4a3b173
commit
183fd40987
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue