Skip to content

Commit 5d44d5b

Browse files
authored
Add warning for Python 3.6 deprecation (#3227)
1 parent c177433 commit 5d44d5b

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

boto3/compat.py

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -64,18 +64,16 @@ def filter_python_deprecation_warnings():
6464

6565

6666
def _warn_deprecated_python():
67-
"""Python 2.7 is deprecated so this code will no longer run.
68-
69-
Use this template for future deprecation campaigns as needed.
70-
"""
71-
py_27_params = {
72-
'date': 'July 15, 2021',
73-
'blog_link': 'https://aws.amazon.com/blogs/developer/announcing-end-'
74-
'of-support-for-python-2-7-in-aws-sdk-for-python-and-'
75-
'aws-cli-v1/'
67+
"""Use this template for future deprecation campaigns as needed."""
68+
py_36_params = {
69+
'date': 'May 30, 2022',
70+
'blog_link': (
71+
'https://aws.amazon.com/blogs/developer/'
72+
'python-support-policy-updates-for-aws-sdks-and-tools/'
73+
)
7674
}
7775
deprecated_versions = {
78-
(2, 7): py_27_params,
76+
(3, 6): py_36_params,
7977
}
8078
py_version = sys.version_info[:2]
8179

@@ -84,7 +82,7 @@ def _warn_deprecated_python():
8482
warning = (
8583
"Boto3 will no longer support Python {}.{} "
8684
"starting {}. To continue receiving service updates, "
87-
"bug fixes, and security updates please upgrade to Python 3.6 or "
85+
"bug fixes, and security updates please upgrade to Python 3.7 or "
8886
"later. More information can be found here: {}"
8987
).format(py_version[0], py_version[1], params['date'], params['blog_link'])
9088
warnings.warn(warning, PythonDeprecationWarning)

0 commit comments

Comments
 (0)