diff options
Diffstat (limited to 'infra')
-rw-r--r-- | infra/bots/zip_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/infra/bots/zip_utils.py b/infra/bots/zip_utils.py index ed1979d804..3d25c71e3d 100644 --- a/infra/bots/zip_utils.py +++ b/infra/bots/zip_utils.py @@ -55,7 +55,7 @@ def unzip(zip_file, target_dir): if zi.filename.endswith('/'): os.mkdir(dst_path) else: - with open(dst_path, 'w') as f: + with open(dst_path, 'wb') as f: f.write(z.read(zi)) perms = zi.external_attr >> 16L os.chmod(dst_path, perms) |