You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fully implement PEP 706: Change default filter for TarFile.extract() and extractall() to 'data' #121999
The documentation for tarfile discusses changes to the default behavior in 3.14 as a future change, but now that 3.14 is in development this change should be implemented and references to the change should reflect that the default behavior is now implemented.
Change default behavior in tarfile.py
Remove deprecation warning when using None
Update tests to reflect new default behavior
Update tarfile documentation to reflect that the change has been implemented
Update shutil
Update shutil tests
Add test to ensure default filter is set to 'data'
If that is also None (the default), raise a DeprecationWarning, and fall back to the 'fully_trusted' filter, whose dangerous behavior matches previous versions of Python.
In Python 3.14, the 'data' filter will become the default instead. It’s possible to switch earlier; see TarFile.extraction_filter.
Activity
pythongh-121999: Change default tarfile filter to 'data'
pythongh-121999: Change default tarfile filter to 'data'
pythongh-121999: Change default tarfile filter to 'data'
gh-121999: Change default tarfile filter to 'data' (GH-122002)
tarfile.extractalland friends to usefilter='data'by default #118875 as a duplicate of this issue