mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Bug #1734723: Fix repr.Repr() so it doesn't ignore the maxtuple attribute.
Will backport
This commit is contained in:
parent
ade2c216e1
commit
c161cb9955
3 changed files with 16 additions and 1 deletions
|
@ -52,7 +52,7 @@ class Repr:
|
|||
return '%s%s%s' % (left, s, right)
|
||||
|
||||
def repr_tuple(self, x, level):
|
||||
return self._repr_iterable(x, level, '(', ')', self.maxlist, ',')
|
||||
return self._repr_iterable(x, level, '(', ')', self.maxtuple, ',')
|
||||
|
||||
def repr_list(self, x, level):
|
||||
return self._repr_iterable(x, level, '[', ']', self.maxlist)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue