summaryrefslogtreecommitdiff
path: root/Demo/md5test
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2004-07-18 05:56:09 +0000
committerTim Peters <tim.peters@gmail.com>2004-07-18 05:56:09 +0000
commite6ddc8b20b493fef2e7cffb2e1351fe1d238857e (patch)
tree3b3d8fcd92e1d8f0cad44297d5c2ae8522bb984c /Demo/md5test
parent4fba4521e836e0cab08316592392b1e4d06eb6ef (diff)
downloadcpython-git-e6ddc8b20b493fef2e7cffb2e1351fe1d238857e.tar.gz
Whitespace normalization. Ran reindent.py over the entire source tree.
Diffstat (limited to 'Demo/md5test')
-rwxr-xr-xDemo/md5test/md5driver.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Demo/md5test/md5driver.py b/Demo/md5test/md5driver.py
index bbd613047a..4c7cfcb893 100755
--- a/Demo/md5test/md5driver.py
+++ b/Demo/md5test/md5driver.py
@@ -6,8 +6,8 @@ def MDPrint(str):
outstr = ''
for i in str:
o = ord(i)
- outstr = (outstr
- + string.hexdigits[(o >> 4) & 0xF]
+ outstr = (outstr
+ + string.hexdigits[(o >> 4) & 0xF]
+ string.hexdigits[o & 0xF])
print outstr,
@@ -97,8 +97,8 @@ def MDTestSuite():
MDString('abc')
MDString('message digest')
MDString(makestr(ord('a'), ord('z')))
- MDString(makestr(ord('A'), ord('Z'))
- + makestr(ord('a'), ord('z'))
+ MDString(makestr(ord('A'), ord('Z'))
+ + makestr(ord('a'), ord('z'))
+ makestr(ord('0'), ord('9')))
MDString((makestr(ord('1'), ord('9')) + '0') * 8)