# HG changeset patch # User Augie Fackler # Date 2017-06-15 16:49:13 # Node ID 3a64ac39b8932fc6369175e92b087ba4645e3481 # Parent cb6436e051ca0ff256555f662ba453df1db92208 md5sum: adapt for python 3 support diff --git a/tests/md5sum.py b/tests/md5sum.py --- a/tests/md5sum.py +++ b/tests/md5sum.py @@ -34,7 +34,7 @@ for filename in sys.argv[1:]: m = md5() try: - for data in iter(lambda: fp.read(8192), ''): + for data in iter(lambda: fp.read(8192), b''): m.update(data) except IOError as msg: sys.stderr.write('%s: I/O error: %s\n' % (filename, msg))