From 4fc1e934c7dea07ac03308558a02673c284090ef Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 5 Aug 2012 18:02:54 +0200 Subject: [PATCH] PluginDownloader: Open target files in binary mode. --- plugins/PluginDownloader/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/PluginDownloader/plugin.py b/plugins/PluginDownloader/plugin.py index 225bc55c2..778b206a1 100644 --- a/plugins/PluginDownloader/plugin.py +++ b/plugins/PluginDownloader/plugin.py @@ -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