diff options
author | Guido van Rossum <guido@python.org> | 1999-06-23 23:27:05 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-06-23 23:27:05 (GMT) |
commit | ff3a278d3be871942e8fe14c01a70d03cdac752d (patch) | |
tree | 6f3fa2ac9f1bcab7ac7f574a53629acacaf38149 /Lib | |
parent | ce7695191fdcfd5564a6fdf7f54255c74206a8c2 (diff) | |
download | cpython-ff3a278d3be871942e8fe14c01a70d03cdac752d.zip cpython-ff3a278d3be871942e8fe14c01a70d03cdac752d.tar.gz cpython-ff3a278d3be871942e8fe14c01a70d03cdac752d.tar.bz2 |
Small patch by Tim Peters - it was using self.maxlist when it should
be using self.maxdict.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/repr.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/repr.py b/Lib/repr.py index f8ef71d..6376a14 100644 --- a/Lib/repr.py +++ b/Lib/repr.py @@ -60,7 +60,7 @@ class Repr: key = keys[i] s = s + self.repr1(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 + '}' def repr_string(self, x, level): s = `x[:self.maxstring]` |