Add PEP 706 filters to tarfile (#10316)

Fixes #10315

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
This commit is contained in:
Jelle Zijlstra
2023-06-14 07:08:32 -07:00
committed by GitHub
parent 5f9d05c7f5
commit 5beddbe883
8 changed files with 116 additions and 23 deletions

View File

@@ -208,3 +208,6 @@ asynchat.async_chat.use_encoding
asynchat.find_prefix_at_end
pkgutil.ImpImporter\..*
pkgutil.ImpLoader\..*
# Omit internal _KEEP argument
tarfile.TarInfo.replace

View File

@@ -171,3 +171,6 @@ asynchat.async_chat.use_encoding
asynchat.find_prefix_at_end
pkgutil.ImpImporter\..*
pkgutil.ImpLoader\..*
# Omit internal _KEEP argument
tarfile.TarInfo.replace

View File

@@ -137,20 +137,6 @@ ssl.OP_LEGACY_SERVER_CONNECT
ssl.Options.OP_LEGACY_SERVER_CONNECT
ssl.RAND_pseudo_bytes
ssl.wrap_socket
tarfile.AbsoluteLinkError
tarfile.AbsolutePathError
tarfile.FilterError
tarfile.LinkOutsideDestinationError
tarfile.OutsideDestinationError
tarfile.SpecialFileError
tarfile.TarFile.extract
tarfile.TarFile.extractall
tarfile.TarFile.extraction_filter
tarfile.TarInfo.replace
tarfile.__all__
tarfile.data_filter
tarfile.fully_trusted_filter
tarfile.tar_filter
turtle.RawTurtle.teleport
turtle.TNavigator.teleport
turtle.TPen.teleport
@@ -336,3 +322,6 @@ typing_extensions\.Final
typing\.NamedTuple
typing\.LiteralString
typing\.Annotated
# Omit internal _KEEP argument
tarfile.TarInfo.replace

View File

@@ -202,3 +202,6 @@ asynchat.async_chat.use_encoding
asynchat.find_prefix_at_end
pkgutil.ImpImporter\..*
pkgutil.ImpLoader\..*
# Omit internal _KEEP argument
tarfile.TarInfo.replace

View File

@@ -200,3 +200,6 @@ asynchat.async_chat.use_encoding
asynchat.find_prefix_at_end
pkgutil.ImpImporter\..*
pkgutil.ImpLoader\..*
# Omit internal _KEEP argument
tarfile.TarInfo.replace

View File

@@ -613,3 +613,18 @@ typing.IO.__iter__ # See https://github.com/python/typeshed/commit/97bc450acd60
# but have yet to find their way to all GitHub Actions images
(sys.get_int_max_str_digits)?
(sys.set_int_max_str_digits)?
# Added or modified in a patch release, backported to all security branches,
# but have yet to find their way to all GitHub Actions images
(tarfile.tar_filter)?
(tarfile.fully_trusted_filter)?
(tarfile.data_filter)?
(tarfile.TarFile.extractall)?
(tarfile.TarFile.extract)?
(tarfile.SpecialFileError)?
(tarfile.OutsideDestinationError)?
(tarfile.LinkOutsideDestinationError)?
(tarfile.FilterError)?
(tarfile.AbsolutePathError)?
(tarfile.AbsoluteLinkError)?
(shutil.unpack_archive)?