mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +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 @@ 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue