summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/tools/wpt/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/tools/wpt/utils.py')
-rw-r--r--testing/web-platform/tests/tools/wpt/utils.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/testing/web-platform/tests/tools/wpt/utils.py b/testing/web-platform/tests/tools/wpt/utils.py
index 5899dc3f3a..51bb3f55dc 100644
--- a/testing/web-platform/tests/tools/wpt/utils.py
+++ b/testing/web-platform/tests/tools/wpt/utils.py
@@ -46,8 +46,11 @@ def untar(fileobj, dest="."):
"""Extract tar archive."""
logger.debug("untar")
fileobj = seekable(fileobj)
+ kwargs = {}
+ if sys.version_info.major >= 3 and sys.version_info.minor >= 12:
+ kwargs["filter"] = "tar"
with tarfile.open(fileobj=fileobj) as tar_data:
- tar_data.extractall(path=dest)
+ tar_data.extractall(path=dest, **kwargs)
def unzip(fileobj, dest=None, limit=None):