[Python-checkins] r85855 - python/branches/py3k/Demo/md5test/md5driver.py

georg.brandl python-checkins at python.org
Wed Oct 27 09:21:54 CEST 2010


Author: georg.brandl
Date: Wed Oct 27 09:21:54 2010
New Revision: 85855

Log:
Encoding fix.

Modified:
   python/branches/py3k/Demo/md5test/md5driver.py

Modified: python/branches/py3k/Demo/md5test/md5driver.py
==============================================================================
--- python/branches/py3k/Demo/md5test/md5driver.py	(original)
+++ python/branches/py3k/Demo/md5test/md5driver.py	Wed Oct 27 09:21:54 2010
@@ -80,7 +80,7 @@
     mdContext = md5()
 
     while 1:
-        data = sys.stdin.read(16)
+        data = sys.stdin.read(16).encode()
         if not data:
             break
         mdContext.update(data)


More information about the Python-checkins mailing list