We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14651e3 commit 2391281Copy full SHA for 2391281
src/sagemaker/utils.py
@@ -1495,6 +1495,7 @@ def format_tags(tags: Tags) -> List[TagsDict]:
1495
1496
1497
class PythonVersionError(Exception):
1498
+ """Raise when a secure [/patched] version of Python is not used."""
1499
pass
1500
1501
@@ -1505,6 +1506,7 @@ def check_tarfile_data_filter_attribute():
1505
1506
Raises:
1507
PythonVersionError: if `tarfile.data_filter` is not available.
1508
"""
1509
+ # The function and it's usages can be deprecated post support of python >= 3.12
1510
if not hasattr(tarfile, "data_filter"):
1511
raise PythonVersionError(
1512
f"Since tarfile extraction is unsafe the operation is prohibited "
0 commit comments