mirror of https://github.com/python/cpython.git
Small patch by Tim Peters - it was using self.maxlist when it should
be using self.maxdict.
This commit is contained in:
parent
ce7695191f
commit
ff3a278d3b
|
@ -60,7 +60,7 @@ def repr_dictionary(self, x, level):
|
||||||
key = keys[i]
|
key = keys[i]
|
||||||
s = s + self.repr1(key, level-1)
|
s = s + self.repr1(key, level-1)
|
||||||
s = s + ': ' + self.repr1(x[key], level-1)
|
s = s + ': ' + self.repr1(x[key], level-1)
|
||||||
if n > self.maxlist: s = s + ', ...'
|
if n > self.maxdict: s = s + ', ...'
|
||||||
return '{' + s + '}'
|
return '{' + s + '}'
|
||||||
def repr_string(self, x, level):
|
def repr_string(self, x, level):
|
||||||
s = `x[:self.maxstring]`
|
s = `x[:self.maxstring]`
|
||||||
|
|
Loading…
Reference in New Issue