From ff3a278d3be871942e8fe14c01a70d03cdac752d Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 23 Jun 1999 23:27:05 +0000 Subject: Small patch by Tim Peters - it was using self.maxlist when it should be using self.maxdict. --- Lib/repr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]` -- cgit v0.12