diff options
author | Guido van Rossum <guido@python.org> | 2001-09-04 19:14:14 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-09-04 19:14:14 +0000 |
commit | 4672e65b7513d0e8e44534742542660300b20714 (patch) | |
tree | e583c3315eb0407d268b97b2020cc7ffbe04bdfa /Lib/test/test_binascii.py | |
parent | a62df561fb88c720b9dff33211339b24b1047a40 (diff) | |
download | cpython-4672e65b7513d0e8e44534742542660300b20714.tar.gz |
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 f03fc5566b..cc78ee3187 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:] |