mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Fix repr.py -- it was triggering on the type name 'long', should be 'int'.
This commit is contained in:
parent
018919aba8
commit
4c9695a9d1
2 changed files with 1 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue