[Python-checkins] CVS: python/dist/src/Lib repr.py,1.12,1.13

Guido van Rossum gvanrossum@users.sourceforge.net
2001年9月04日 19:27:06 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv3714
Modified Files:
	repr.py 
Log Message:
Another / that should be a // (previously not caught because of
incomplete coverage of the test suite).
Index: repr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/repr.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** repr.py	2001年09月04日 19:14:14	1.12
--- repr.py	2001年09月05日 02:27:04	1.13
***************
*** 24,28 ****
 s = `x`
 if len(s) > self.maxother:
! i = max(0, (self.maxother-3)/2)
 j = max(0, self.maxother-3-i)
 s = s[:i] + '...' + s[len(s)-j:]
--- 24,28 ----
 s = `x`
 if len(s) > self.maxother:
! i = max(0, (self.maxother-3)//2)
 j = max(0, self.maxother-3-i)
 s = s[:i] + '...' + s[len(s)-j:]

AltStyle によって変換されたページ (->オリジナル) /