mirror of
https://github.com/python/cpython.git
synced 2026-01-06 23:42:34 +00:00
Another / that should be a // (previously not caught because of
incomplete coverage of the test suite).
This commit is contained in:
parent
cf856f9f28
commit
6fd0f0ac1e
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ def repr1(self, x, level):
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue