B 劇cD @stddlZddlZddlZddlZddlZddlmZeZddl m Z ej drZddZnejZddZdd ZdS) N)PythonDeprecationWarningwinc CsPyt|Wn0tk r>}z|jtjks.Wdd}~XYnXt||dS)N)osremoveOSErrorerrnoENOENTrename)Zcurrent_filenameZ new_filenameer g/private/var/folders/8c/hx9_v10d5x38qmnzt13b7b8j1k3n5b/T/pip-target-x6xd5gna/lib/python/boto3/compat.py rename_files  r cCstjddtdddS)z Invoking this filter acknowledges your runtime will soon be deprecated at which time you will stop receiving all updates to your client. ignorez'.*Boto3 will no longer support Python.*z.*boto3\.compat)messagecategorymoduleN)warningsfilterwarningsrr r r r "filter_python_deprecation_warnings.s rcCs\ddd}i}tjdd}||krX||}d|d|d|d |d }t|tdS) z=Use this template for future deprecation campaigns as needed.z May 30, 2022z\https://aws.amazon.com/blogs/developer/python-support-policy-updates-for-aws-sdks-and-tools/)date blog_linkNzBoto3 will no longer support Python {}.{} starting {}. To continue receiving service updates, bug fixes, and security updates please upgrade to Python 3.7 or later. More information can be found here: {}rrr)sys version_infoformatrwarnr)Z py_36_paramsZdeprecated_versions py_versionparamswarningr r r _warn_deprecated_python;sr )rrrsocketrZboto3.exceptionsrConnectionErrorZ SOCKET_ERRORcollections.abcabccollections_abcplatform startswithr r rr r r r r  s