diff tests/md5sum.py @ 32852:3a64ac39b893

md5sum: adapt for python 3 support
author Augie Fackler <augie@google.com>
date Thu, 15 Jun 2017 12:49:13 -0400
parents 8d1cdee372e6
children 904bc1dc2694
line wrap: on
line diff
--- a/tests/md5sum.py	Thu Jun 15 11:10:51 2017 -0700
+++ b/tests/md5sum.py	Thu Jun 15 12:49:13 2017 -0400
@@ -34,7 +34,7 @@
 
     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))