summaryrefslogtreecommitdiffstats
path: root/Demo/md5test
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2008-09-13 01:42:55 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2008-09-13 01:42:55 (GMT)
commite91fcbdf691c687d1195fad342564e0b3442f444 (patch)
treecc6286b136ee2c57e0cb5cd62c9e2f6ddf05e0a1 /Demo/md5test
parent8bd9a2f7dbfacec690431f5223670a2c85b2ac5f (diff)
downloadcpython-e91fcbdf691c687d1195fad342564e0b3442f444.zip
cpython-e91fcbdf691c687d1195fad342564e0b3442f444.tar.gz
cpython-e91fcbdf691c687d1195fad342564e0b3442f444.tar.bz2
#687648 from Robert Schuppenies: use classic division. From me: remove two stray semicolons
Diffstat (limited to 'Demo/md5test')
-rwxr-xr-xDemo/md5test/md5driver.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Demo/md5test/md5driver.py b/Demo/md5test/md5driver.py
index 4c7cfcb..25e7314 100755
--- a/Demo/md5test/md5driver.py
+++ b/Demo/md5test/md5driver.py
@@ -32,7 +32,7 @@ def MDTimeTrial():
filsiz = 1 << 8
filler = makestr(0, filsiz-1)
- data = filler * (TEST_BLOCK_SIZE / filsiz);
+ data = filler * (TEST_BLOCK_SIZE // filsiz)
data = data + filler[:(TEST_BLOCK_SIZE % filsiz)]
del filsiz, filler
@@ -62,7 +62,7 @@ def MDString(str):
def MDFile(filename):
- f = open(filename, 'rb');
+ f = open(filename, 'rb')
mdContext = md5.new()
while 1: