From: Guido van Rossum Date: Wed, 5 Sep 2001 02:27:04 +0000 (+0000) Subject: Another / that should be a // (previously not caught because of X-Git-Tag: v2.2a3~97 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6fd0f0ac1e65d5c525beaef092464ecd0b8cab5e;p=python Another / that should be a // (previously not caught because of incomplete coverage of the test suite). --- diff --git a/Lib/repr.py b/Lib/repr.py index 1b1f4f4689..0362680776 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