B z ` @sddlZddlZddlZddlZddlZddlmZddlmZej rLe Z nej Z ej rfddl mZnddlZejdrddZnejZddZd d ZdS) N)six)PythonDeprecationWarningwinc CsPyt|Wn0tk r>}z|jtjks.Wdd}~XYnXt||dS)N)osremoveOSErrorerrnoENOENTrename)Zcurrent_filenameZ new_filenameer 0/tmp/pip-unpacked-wheel-q_00nvde/boto3/compat.py rename_file&s  rcCstjddtdddS)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_warnings5s rcCsnddd}ddd}|||d}tjdd}||krj||}d|d |d |d |d }t|tdS) NzFebruary 1, 2021zhttps://aws.amazon.com/blogs/developer/announcing-the-end-of-support-for-python-3-4-and-3-5-in-the-aws-sdk-for-python-and-aws-cli-v1/)date blog_linkz July 15, 2021zuhttps://aws.amazon.com/blogs/developer/announcing-end-of-support-for-python-2-7-in-aws-sdk-for-python-and-aws-cli-v1/)))r)rzBoto3 will no longer support Python {}.{} starting {}. To continue receiving service updates, bug fixes, and security updates please upgrade to Python 3.6 or later. More information can be found here: {}rrr)sys version_infoformatrwarnr)Zpy_34_35_paramsZ py_27_paramsZdeprecated_versions py_versionparamswarningr r r _warn_deprecated_pythonBsr%)rrrsocketrZbotocore.vendoredrZboto3.exceptionsrPY3ConnectionErrorZ SOCKET_ERRORerrorcollections.abcabccollections_abc collectionsplatform startswithrr rr%r r r r  s"