]> granicus.if.org Git - python/commitdiff
Small patch by Tim Peters - it was using self.maxlist when it should
authorGuido van Rossum <guido@python.org>
Wed, 23 Jun 1999 23:27:05 +0000 (23:27 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 23 Jun 1999 23:27:05 +0000 (23:27 +0000)
be using self.maxdict.

Lib/repr.py

index f8ef71d6813294824d5cddb4d501fd2fc3fa7612..6376a14b70802cf5286b0055e7e26aa55493440f 100644 (file)
@@ -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]`