diff options
author | Guido van Rossum <guido@python.org> | 2001-09-04 19:14:14 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-09-04 19:14:14 (GMT) |
commit | 54e54c6877329e105406c48490f218faff59db39 (patch) | |
tree | 6bbdf1f6efaa2253af424f59dc9564a5458d6739 /Lib/test/test_strftime.py | |
parent | b8f22749853cf79bfbe3709309e67d1a448f4cab (diff) | |
download | cpython-54e54c6877329e105406c48490f218faff59db39.zip cpython-54e54c6877329e105406c48490f218faff59db39.tar.gz cpython-54e54c6877329e105406c48490f218faff59db39.tar.bz2 |
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.
Diffstat (limited to 'Lib/test/test_strftime.py')
-rwxr-xr-x | Lib/test/test_strftime.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_strftime.py b/Lib/test/test_strftime.py index 47f35f5..4ce72b9 100755 --- a/Lib/test/test_strftime.py +++ b/Lib/test/test_strftime.py @@ -64,10 +64,10 @@ def strftest(now): ('%M', '%02d' % now[4], 'minute, (00-59)'), ('%p', ampm, 'AM or PM as appropriate'), ('%S', '%02d' % now[5], 'seconds of current time (00-60)'), - ('%U', '%02d' % ((now[7] + jan1[6])/7), + ('%U', '%02d' % ((now[7] + jan1[6])//7), 'week number of the year (Sun 1st)'), ('%w', '0?%d' % ((1+now[6]) % 7), 'weekday as a number (Sun 1st)'), - ('%W', '%02d' % ((now[7] + (jan1[6] - 1)%7)/7), + ('%W', '%02d' % ((now[7] + (jan1[6] - 1)%7)//7), 'week number of the year (Mon 1st)'), # %x see below ('%X', '%02d:%02d:%02d' % (now[3], now[4], now[5]), '%H:%M:%S'), |