Fix repr.py -- it was triggering on the type name 'long', should be 'int'.

This commit is contained in:
Guido van Rossum 2007-01-15 00:14:39 +00:00
parent 018919aba8
commit 4c9695a9d1
2 changed files with 1 additions and 3 deletions

View File

@ -1,4 +1,2 @@
test_pickletools -- Test probably needs to be fixed
test_repr -- test_numbers() fails
test_socket -- ntol problems, see SF patch 1635058
test_sqlite -- CheckLargeInt (sqlite3.test.types.SqliteTypeTests, sqlite3.test.types.DeclTypesTests)

View File

@ -92,7 +92,7 @@ class Repr:
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)