Commit 94382d6e authored by Guido van Rossum's avatar Guido van Rossum

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

parent 12d651ab
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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment