From 54e54c6877329e105406c48490f218faff59db39 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 4 Sep 2001 19:14:14 +0000 Subject: The first batch of changes recommended by the fixdiv tool. These are mostly changes of / operators into //. Once or twice I did more or less than recommended. --- Lib/repr.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Lib/repr.py') diff --git a/Lib/repr.py b/Lib/repr.py index f418d1a5f6..1b1f4f4689 100644 --- a/Lib/repr.py +++ b/Lib/repr.py @@ -65,7 +65,7 @@ class Repr: def repr_str(self, x, level): s = `x[:self.maxstring]` if len(s) > self.maxstring: - i = max(0, (self.maxstring-3)/2) + i = max(0, (self.maxstring-3)//2) j = max(0, self.maxstring-3-i) s = `x[:i] + x[len(x)-j:]` s = s[:i] + '...' + s[len(s)-j:] @@ -73,7 +73,7 @@ class Repr: def repr_long(self, x, level): s = `x` # XXX Hope this isn't too slow... if len(s) > self.maxlong: - i = max(0, (self.maxlong-3)/2) + i = max(0, (self.maxlong-3)//2) j = max(0, self.maxlong-3-i) s = s[:i] + '...' + s[len(s)-j:] return s @@ -86,7 +86,7 @@ class Repr: return '<' + x.__class__.__name__ + ' instance at ' + \ hex(id(x))[2:] + '>' if len(s) > self.maxstring: - i = max(0, (self.maxstring-3)/2) + i = max(0, (self.maxstring-3)//2) j = max(0, self.maxstring-3-i) s = s[:i] + '...' + s[len(s)-j:] return s -- cgit v1.2.1