summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_md5.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-10-23 17:22:08 (GMT)
committerFred Drake <fdrake@acm.org>2000-10-23 17:22:08 (GMT)
commit004d5e6880940ddbb38460986ac62ee0f1bae97d (patch)
tree682e75e743f5c22206a65ac0262c03ce37e4fbee /Lib/test/test_md5.py
parent2e6d25c5bbf3e2d4f18191c0836b5ed8f94dc850 (diff)
downloadcpython-004d5e6880940ddbb38460986ac62ee0f1bae97d.zip
cpython-004d5e6880940ddbb38460986ac62ee0f1bae97d.tar.gz
cpython-004d5e6880940ddbb38460986ac62ee0f1bae97d.tar.bz2
Make reindent.py happy (convert everything to 4-space indents!).
Diffstat (limited to 'Lib/test/test_md5.py')
-rw-r--r--Lib/test/test_md5.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/Lib/test/test_md5.py b/Lib/test/test_md5.py
index 5e453fa..e2d3f22 100644
--- a/Lib/test/test_md5.py
+++ b/Lib/test/test_md5.py
@@ -4,15 +4,15 @@ import string
from md5 import md5
def hexstr(s):
- h = string.hexdigits
- r = ''
- for c in s:
- i = ord(c)
- r = r + h[(i >> 4) & 0xF] + h[i & 0xF]
- return r
+ h = string.hexdigits
+ r = ''
+ for c in s:
+ i = ord(c)
+ r = r + h[(i >> 4) & 0xF] + h[i & 0xF]
+ return r
def md5test(s):
- return 'MD5 ("' + s + '") = ' + hexstr(md5(s).digest())
+ return 'MD5 ("' + s + '") = ' + hexstr(md5(s).digest())
print 'MD5 test suite:'
print md5test('')
@@ -27,4 +27,4 @@ print md5test('12345678901234567890123456789012345678901234567890123456789012345
m = md5('testing the hexdigest method')
h = m.hexdigest()
if hexstr(m.digest()) <> h:
- print 'hexdigest() failed'
+ print 'hexdigest() failed'