From: Guido van Rossum Date: Mon, 15 Jan 2007 00:14:39 +0000 (+0000) Subject: Fix repr.py -- it was triggering on the type name 'long', should be 'int'. X-Git-Tag: v3.0a1~1267 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4c9695a9d15661c526867e387967f5f3e82bed6f;p=python Fix repr.py -- it was triggering on the type name 'long', should be 'int'. --- 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)