changeset 32852:3a64ac39b893

md5sum: adapt for python 3 support
author Augie Fackler <augie@google.com>
date Thu, 15 Jun 2017 12:49:13 -0400
parents cb6436e051ca
children 3139a7a1e7d4
files tests/md5sum.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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))