From: Guido van Rossum Date: Wed, 23 Jun 1999 23:27:05 +0000 (+0000) Subject: Small patch by Tim Peters - it was using self.maxlist when it should X-Git-Tag: v1.6a1~1161 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff3a278d3be871942e8fe14c01a70d03cdac752d;p=thirdparty%2FPython%2Fcpython.git Small patch by Tim Peters - it was using self.maxlist when it should be using self.maxdict. --- diff --git a/Lib/repr.py b/Lib/repr.py index f8ef71d68132..6376a14b7080 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]`