Skip to content

Commit e789ec5

Browse files
committed
Handle filter parameter
1 parent 7a1cef8 commit e789ec5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build_support/lib_xmlsec_dependency_builder.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,10 @@ def _extract_archives(self, archives):
235235
self.info(f'Unpacking {archive.name}')
236236
try:
237237
with tarfile.open(str(archive)) as tar:
238-
tar.extractall(path=str(self.build_libs_dir), filter='data')
238+
if sys.version_info >= (3, 12):
239+
tar.extractall(path=str(self.build_libs_dir), filter='data')
240+
else:
241+
tar.extractall(path=str(self.build_libs_dir))
239242
except EOFError as error:
240243
raise DistutilsError(f'Bad {archive.name} downloaded; remove it and try again.') from error
241244

0 commit comments

Comments
 (0)