o dD @stddlZddlZddlZddlZddlZddlmZeZddl m Z ej dr-ddZnejZddZdd ZdS) N)PythonDeprecationWarningwinc CsRzt|Wnty }z |jtjksWYd}~nd}~wwt||dS)N)osremoveOSErrorerrnoENOENTrename)Zcurrent_filenameZ new_filenameer g/private/var/folders/v1/_jykv66s6qd26_69j1njbrl80000gr/T/pip-target-p1gutpg6/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}||vr.||}d|d|d|d |d }t|tdSdS) 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