[Python-checkins] python/dist/src/Lib imaplib.py, 1.72,
1.73 random.py, 1.68, 1.69
rhettinger at users.sourceforge.net
rhettinger at users.sourceforge.net
Mon Sep 27 17:29:06 CEST 2004
- Previous message: [Python-checkins] python/dist/src/Lib decimal.py,1.24,1.25
- Next message: [Python-checkins] python/dist/src/Lib/test test_deque.py, 1.14,
1.15 test_enumerate.py, 1.12, 1.13 test_itertools.py, 1.32,
1.33 test_random.py, 1.21, 1.22 test_set.py, 1.13, 1.14
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29983
Modified Files:
imaplib.py random.py
Log Message:
Use floor division operator.
Index: imaplib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/imaplib.py,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -d -r1.72 -r1.73
--- imaplib.py 10 Aug 2004 01:24:54 -0000 1.72
+++ imaplib.py 27 Sep 2004 15:29:02 -0000 1.73
@@ -1361,7 +1361,7 @@
zone = -time.altzone
else:
zone = -time.timezone
- return '"' + dt + " %+03d%02d" % divmod(zone/60, 60) + '"'
+ return '"' + dt + " %+03d%02d" % divmod(zone//60, 60) + '"'
Index: random.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/random.py,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -d -r1.68 -r1.69
--- random.py 13 Sep 2004 22:23:20 -0000 1.68
+++ random.py 27 Sep 2004 15:29:03 -0000 1.69
@@ -197,9 +197,9 @@
if istep != step:
raise ValueError, "non-integer step for randrange()"
if istep > 0:
- n = (width + istep - 1) / istep
+ n = (width + istep - 1) // istep
elif istep < 0:
- n = (width + istep + 1) / istep
+ n = (width + istep + 1) // istep
else:
raise ValueError, "zero step for randrange()"
- Previous message: [Python-checkins] python/dist/src/Lib decimal.py,1.24,1.25
- Next message: [Python-checkins] python/dist/src/Lib/test test_deque.py, 1.14,
1.15 test_enumerate.py, 1.12, 1.13 test_itertools.py, 1.32,
1.33 test_random.py, 1.21, 1.22 test_set.py, 1.13, 1.14
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Python-checkins
mailing list