PluginDownloader: Open target files in binary mode.

This commit is contained in:
Valentin Lorentz 2012-08-05 18:02:54 +02:00
parent c149e8fa81
commit 4fc1e934c7

View File

@ -138,7 +138,7 @@ class GithubRepository(GitRepository):
if extractedFile is None:
os.mkdir(newFileName)
else:
open(newFileName, 'a').write(extractedFile.read())
open(newFileName, 'ab').write(extractedFile.read())
finally:
archive.close()
del archive