Skip to content

Commit

Permalink
Fix repr.py -- it was triggering on the type name 'long', should be '…
Browse files Browse the repository at this point in the history
…int'.
  • Loading branch information
gvanrossum committed Jan 15, 2007
1 parent 018919a commit 4c9695a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions BROKEN_TESTS
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 1 addition & 1 deletion Lib/repr.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def repr_str(self, x, level):
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)
Expand Down

0 comments on commit 4c9695a

Please sign in to comment.