]> granicus.if.org Git - python/commitdiff
Another / that should be a // (previously not caught because of
authorGuido van Rossum <guido@python.org>
Wed, 5 Sep 2001 02:27:04 +0000 (02:27 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 5 Sep 2001 02:27:04 +0000 (02:27 +0000)
incomplete coverage of the test suite).

Lib/repr.py

index 1b1f4f46898dc47a6065ec01b09d0f790f370580..036268077669a0d47c372309762ae50f933909d3 100644 (file)
@@ -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