summaryrefslogtreecommitdiffhomepage
path: root/setup_helper.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup_helper.py')
-rw-r--r--setup_helper.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/setup_helper.py b/setup_helper.py
index fc4e755f..8671fd63 100644
--- a/setup_helper.py
+++ b/setup_helper.py
@@ -134,12 +134,7 @@ def make_tarball(
tar = tarfile.open(archive_name, mode=mode)
# This recursively adds everything underneath base_dir
try:
- try:
- # Support for the `filter' parameter was added in Python 2.7,
- # earlier versions will raise TypeError.
- tar.add(base_dir, filter=_set_uid_gid)
- except TypeError:
- tar.add(base_dir)
+ tar.add(base_dir, filter=_set_uid_gid)
finally:
tar.close()