projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf856f9
)
Another / that should be a // (previously not caught because of
author
Guido van Rossum
<guido@python.org>
Wed, 5 Sep 2001 02:27:04 +0000
(
02:27
+0000)
committer
Guido 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
patch
|
blob
|
history
diff --git
a/Lib/repr.py
b/Lib/repr.py
index 1b1f4f46898dc47a6065ec01b09d0f790f370580..036268077669a0d47c372309762ae50f933909d3 100644
(file)
--- 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