diff options
Diffstat (limited to 'setuptools')
-rwxr-xr-x | setuptools/archive_util.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/setuptools/archive_util.py b/setuptools/archive_util.py index 6493b448..16355092 100755 --- a/setuptools/archive_util.py +++ b/setuptools/archive_util.py @@ -145,8 +145,6 @@ def unpack_tarfile(filename, extract_dir, progress_filter=default_filter): tarobj.chown = lambda *args: None for member in tarobj: name = member.name - if isinstance(name, bytes): - name = name.decode(tarfile.ENCODING) # don't extract absolute paths or ones with .. in them if not name.startswith('/') and '..' not in name.split('/'): prelim_dst = os.path.join(extract_dir, *name.split('/')) |