From: Andrew M. Kuchling Date: Thu, 24 Apr 2003 17:27:53 +0000 (+0000) Subject: Remove unneeded continuation chars X-Git-Tag: v2.3c1~1019 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e81866e7c688871543c3127d3999c695abae3d11;p=python Remove unneeded continuation chars --- diff --git a/Demo/md5test/md5driver.py b/Demo/md5test/md5driver.py index 61aea61358..bbd613047a 100755 --- a/Demo/md5test/md5driver.py +++ b/Demo/md5test/md5driver.py @@ -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)