diff options
author | Guido van Rossum <guido@python.org> | 2001-09-05 02:27:04 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-09-05 02:27:04 (GMT) |
commit | 6fd0f0ac1e65d5c525beaef092464ecd0b8cab5e (patch) | |
tree | 29ddba68ac6c9f2c5dd29b0a03e9fb52affd1d7f /Lib/repr.py | |
parent | cf856f9f28e4a2806fa835fb4e0e54582c0a2edd (diff) | |
download | cpython-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/repr.py')
-rw-r--r-- | Lib/repr.py | 2 |
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 |