From d12b01679cb0e2e6a3ea1832891614c6ee86095c Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Tue, 2 Aug 2016 08:54:51 -0400 Subject: Backout 1b8dc8c7ac. Reopens #709. --- setuptools/archive_util.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'setuptools') 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('/')) -- cgit v1.2.1