mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
PluginDownloader: Open target files in binary mode.
This commit is contained in:
parent
c149e8fa81
commit
4fc1e934c7
@ -138,7 +138,7 @@ class GithubRepository(GitRepository):
|
|||||||
if extractedFile is None:
|
if extractedFile is None:
|
||||||
os.mkdir(newFileName)
|
os.mkdir(newFileName)
|
||||||
else:
|
else:
|
||||||
open(newFileName, 'a').write(extractedFile.read())
|
open(newFileName, 'ab').write(extractedFile.read())
|
||||||
finally:
|
finally:
|
||||||
archive.close()
|
archive.close()
|
||||||
del archive
|
del archive
|
||||||
|
Loading…
Reference in New Issue
Block a user