File: //snap/certbot/4965/lib/python3.12/site-packages/requests/__pycache__/compat.cpython-312.pyc
�
M�h^ � �� � d Z ddlZddlZddlmZ e ej d� d � dk( Zd� Z e� Zej Zed dk( Zed d k( Zd
Z ddlZdZerddlmZ nddlmZ ddlmZ dd
lmZmZmZ ddlmZ ddlm Z ddl!m"Z" ddl#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z- ddl.m/Z/m0Z0m1Z1m2Z2m3Z3 e4Z5e4Z4e6Z6e4e6fZ7ee8fZ9efZ:y# e e
f$ r dZY ��w xY w# e$ r ddlZY ��w xY w)z�
requests.compat
~~~~~~~~~~~~~~~
This module previously handled import compatibility issues
between Python 2 and Python 3. It remains for backwards
compatibility until the next major version.
� N)�__version__�.� Tc �h � d} dD ] }| �� t j |� } � | S # t $ r Y �+w xY w)z-Find supported character detection libraries.N)�chardet�charset_normalizer)� importlib�
import_module�ImportError)r �libs �/build/snapcraft-certbot-c9561b03ef7f16aa90eb6754ca5f17a1/parts/certbot/install/lib/python3.12/site-packages/requests/compat.py�_resolve_char_detectionr sK � ��G�0� ���?�
�#�1�1�#�6��� �N�� �
��
�s �%� 1�1� � F)�JSONDecodeError)�OrderedDict)�Callable�Mapping�MutableMapping)� cookiejar)�Morsel)�StringIO)
�quote�
quote_plus�unquote�unquote_plus� urldefrag� urlencode�urljoin�urlparse�urlsplit�
urlunparse)�
getproxies�getproxies_environment�parse_http_list�proxy_bypass�proxy_bypass_environment);�__doc__r �sys�urllib3r �urllib3_version�int�split�is_urllib3_1� TypeError�AttributeErrorr r �version_info�_ver�is_py2�is_py3�has_simplejson�
simplejson�jsonr r �collectionsr �collections.abcr r r �httpr � cookielib�http.cookiesr �ior �urllib.parser r r r r r r r r! r"