bin/extract.py
changeset 19 47ae52d1c868
parent 15 4d00362086e0
--- a/bin/extract.py	Tue Sep 21 17:30:38 2010 +0300
+++ b/bin/extract.py	Mon Oct 04 16:52:48 2010 +0300
@@ -87,7 +87,7 @@
         outfile = os.path.join(outpath, name)
         # overwrite only if different size
         if not os.path.exists(outfile) or os.path.getsize(outfile) != len(data):
-            file = open(outfile, "w")
+            file = open(outfile, "wb")
             file.write(data)
             file.close()