diff options
author | Alex Waygood <Alex.Waygood@Gmail.com> | 2024-04-16 11:36:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-16 11:36:00 (GMT) |
commit | cff0a2db00b6379f60fe273a9782f71773d0a4cb (patch) | |
tree | 47e3a9c118f7cc09206311288c14543be429541b /Lib/tarfile.py | |
parent | c520bf9bdf77d43c3d5d95bd08e856759a2abc86 (diff) | |
download | cpython-cff0a2db00b6379f60fe273a9782f71773d0a4cb.zip cpython-cff0a2db00b6379f60fe273a9782f71773d0a4cb.tar.gz cpython-cff0a2db00b6379f60fe273a9782f71773d0a4cb.tar.bz2 |
gh-117691: Add an appropriate stacklevel for PEP-706 tarfile deprecation warnings (GH-117872)
Diffstat (limited to 'Lib/tarfile.py')
-rwxr-xr-x | Lib/tarfile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tarfile.py b/Lib/tarfile.py index 6f315a6..149b1c3 100755 --- a/Lib/tarfile.py +++ b/Lib/tarfile.py @@ -2247,7 +2247,7 @@ class TarFile(object): 'Python 3.14 will, by default, filter extracted tar ' + 'archives and reject files or modify their metadata. ' + 'Use the filter argument to control this behavior.', - DeprecationWarning) + DeprecationWarning, stacklevel=3) return fully_trusted_filter if isinstance(filter, str): raise TypeError( |