chiark / gitweb /
Fix python2/makebuildserver breakage
authorCiaran Gultnieks <ciaran@ciarang.com>
Sun, 13 Mar 2016 20:49:38 +0000 (20:49 +0000)
committerCiaran Gultnieks <ciaran@ciarang.com>
Sun, 13 Mar 2016 20:49:38 +0000 (20:49 +0000)
makebuildserver

index 6570e6796482b64c87550e66bbe1f289f1700df0..dc9d1f44ae022af28dd317772a75f26f1a667f5a 100755 (executable)
@@ -303,7 +303,7 @@ wanted = []
 
 
 def sha256_for_file(path):
-    with open(path, 'r') as f:
+    with open(path, 'rb') as f:
         s = hashlib.sha256()
         while True:
             data = f.read(4096)