summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-09-05 02:27:04 (GMT)
committerGuido van Rossum <guido@python.org>2001-09-05 02:27:04 (GMT)
commit6fd0f0ac1e65d5c525beaef092464ecd0b8cab5e (patch)
tree29ddba68ac6c9f2c5dd29b0a03e9fb52affd1d7f /Lib
parentcf856f9f28e4a2806fa835fb4e0e54582c0a2edd (diff)
downloadcpython-6fd0f0ac1e65d5c525beaef092464ecd0b8cab5e.zip
cpython-6fd0f0ac1e65d5c525beaef092464ecd0b8cab5e.tar.gz
cpython-6fd0f0ac1e65d5c525beaef092464ecd0b8cab5e.tar.bz2
Another / that should be a // (previously not caught because of
incomplete coverage of the test suite).
Diffstat (limited to 'Lib')
-rw-r--r--Lib/repr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/repr.py b/Lib/repr.py
index 1b1f4f4..0362680 100644
--- a/Lib/repr.py
+++ b/Lib/repr.py
@@ -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