diff options
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:] |