B W` @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-ta34w_2g/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 rcCs`ddd}d|i}tjdd}||kr\||}d|d|d|d |d }t|tdS) Nz 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/)date blog_link)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)Z 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"