aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/archive.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/archive.py b/sos/archive.py
index 245f904f..2e42bbd0 100644
--- a/sos/archive.py
+++ b/sos/archive.py
@@ -357,7 +357,7 @@ class TarFileArchive(FileCacheArchive):
def _build_archive(self):
# python2.6 TarFile lacks the filter parameter
- if six.PY2 and sys.version_info[1] < 7:
+ if not six.PY3 and sys.version_info[1] < 7:
tar = _TarFile.open(self._archive_name, mode="w")
else:
tar = tarfile.open(self._archive_name, mode="w")