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_binascii.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_binascii.py')
-rwxr-xr-x | Lib/test/test_binascii.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_binascii.py b/Lib/test/test_binascii.py index f03fc55..cc78ee3 100755 --- a/Lib/test/test_binascii.py +++ b/Lib/test/test_binascii.py @@ -54,10 +54,10 @@ for i in range(256): fillers = fillers + c def addnoise(line): noise = fillers - ratio = len(line) / len(noise) + ratio = len(line) // len(noise) res = "" while line and noise: - if len(line) / len(noise) > ratio: + if len(line) // len(noise) > ratio: c, line = line[0], line[1:] else: c, noise = noise[0], noise[1:] |