Fix repr.py -- it was triggering on the type name 'long', should be 'int'.
This commit is contained in:
parent
018919aba8
commit
4c9695a9d1
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue