o ?c @sddlZddlZddlZddlZddlZddlmZddlmZej r&e Z nej Z ej r3ddl mZnddlZejdrBddZnejZddZd d ZdS) N)six)PythonDeprecationWarningwinc CsRzt|Wnty }z |jtjksWYd}~nd}~wwt||dS)N)osremoveOSErrorerrnoENOENTrename)Zcurrent_filenameZ new_filenameer g/private/var/folders/cw/wlscbxl13mj6wd668h7l9g9sllkg5j/T/pip-target-b31awkwq/lib/python/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}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_pythonBsr!)rrrsocketrZbotocore.vendoredrZboto3.exceptionsrPY3ConnectionErrorZ SOCKET_ERRORerrorcollections.abcabccollections_abc collectionsplatform startswithrr rr!r r r r s$