]> granicus.if.org Git - python/commitdiff
Remove unneeded continuation chars
authorAndrew M. Kuchling <amk@amk.ca>
Thu, 24 Apr 2003 17:27:53 +0000 (17:27 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Thu, 24 Apr 2003 17:27:53 +0000 (17:27 +0000)
Demo/md5test/md5driver.py

index 61aea613583f5aaef3cb05c4de730680cfd284e7..bbd613047ad16a47cc934f6db76ba4603575d80d 100755 (executable)
@@ -6,9 +6,9 @@ def MDPrint(str):
     outstr = ''
     for i in str:
         o = ord(i)
-        outstr = outstr \
-                  + string.hexdigits[(o >> 4) & 0xF] \
-                  + string.hexdigits[o & 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)