Another / that should be a // (previously not caught because of

incomplete coverage of the test suite).
This commit is contained in:
Guido van Rossum 2001-09-05 02:27:04 +00:00
parent cf856f9f28
commit 6fd0f0ac1e
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ class Repr:
else:
s = `x`
if len(s) > self.maxother:
i = max(0, (self.maxother-3)/2)
i = max(0, (self.maxother-3)//2)
j = max(0, self.maxother-3-i)
s = s[:i] + '...' + s[len(s)-j:]
return s