summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-01-15 00:14:39 +0000
committerGuido van Rossum <guido@python.org>2007-01-15 00:14:39 +0000
commit94382d6e50d211ecd5e8a414a26c2272687f6cd7 (patch)
tree3f1dd8887c3f9d562d34df513fd20db9aefb686b
parent12d651abe38a5023adbb40f0b66f1156dce6f466 (diff)
downloadcpython-94382d6e50d211ecd5e8a414a26c2272687f6cd7.tar.gz
Fix repr.py -- it was triggering on the type name 'long', should be 'int'.
-rw-r--r--BROKEN_TESTS2
-rw-r--r--Lib/repr.py2
2 files changed, 1 insertions, 3 deletions
diff --git a/BROKEN_TESTS b/BROKEN_TESTS
index a14999c963..4d513e61ce 100644
--- a/BROKEN_TESTS
+++ b/BROKEN_TESTS
@@ -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)
diff --git a/Lib/repr.py b/Lib/repr.py
index 32544a27c1..c580168d64 100644
--- a/Lib/repr.py
+++ b/Lib/repr.py
@@ -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)