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
|
@ -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…
Reference in New Issue