diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-11-29 03:38:23 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-11-29 03:38:23 +0100 |
commit | 45c199a80720f7e615b70919d592be31226e9734 (patch) | |
tree | 5b69eba27ce82b59cb5e6bfd537294d2dd8f0dc9 /rtool.py | |
parent | decdb75fbaccbcd041433542f10163c104c43b9c (diff) | |
download | mitmproxy-45c199a80720f7e615b70919d592be31226e9734.tar.gz mitmproxy-45c199a80720f7e615b70919d592be31226e9734.tar.bz2 mitmproxy-45c199a80720f7e615b70919d592be31226e9734.zip |
fix tarfile creation
Diffstat (limited to 'rtool.py')
-rw-r--r-- | rtool.py | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -12,7 +12,7 @@ import shlex import runpy import pprint from zipfile import ZipFile -from tarfile import TarFile +import tarfile import platform import click @@ -31,8 +31,7 @@ if platform.system() == "Windows": return a else: def Archive(name): - a = TarFile(name + ".tar.gz", "w:gz") - return a + return tarfile.open(name + ".tar.gz", "w:gz") RELEASE_DIR = join(os.path.dirname(os.path.realpath(__file__))) |