commit | 4c9695a9d15661c526867e387967f5f3e82bed6f | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Mon Jan 15 00:14:39 2007 +0000 |
committer | Guido van Rossum <guido@python.org> | Mon Jan 15 00:14:39 2007 +0000 |
tree | 97d694e3cbe914de7686cb0c9383739144a99bd0 | |
parent | 018919aba81093e43d5c5c401a253b0707a8e86f [diff] [blame] |
Fix repr.py -- it was triggering on the type name 'long', should be 'int'.
diff --git a/Lib/repr.py b/Lib/repr.py index 32544a2..c580168 100644 --- a/Lib/repr.py +++ b/Lib/repr.py
@@ -92,7 +92,7 @@ s = s[:i] + '...' + s[len(s)-j:] return s - def repr_long(self, x, level): + def repr_int(self, x, level): s = __builtin__.repr(x) # XXX Hope this isn't too slow... if len(s) > self.maxlong: i = max(0, (self.maxlong-3)//2)