o
    ‚ç×i´  ã                   @   sV  d Z ddlZddlZddlmZ zddlmZ W n ey#   dZY nw zddl	mZ
 W n ey7   dZ
Y nw dd„ Zdd	„ Zz	eeje
eƒ W n eefye   e d
ej› de
› de› d�e¡ Y nw z.zddlZW n eyx   dZY nw eeddƒs“ddlmZ e ¡  ddlmZ eeƒ W n	 ey�   Y nw ddlmZ e de¡ ddlZddlmZ ddlmZmZ ddlmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'mZ ddl(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0 ddlm1Z1m2Z2m3Z3m4Z4m5Z5m6Z6m7Z7m8Z8m9Z9m:Z: ddl;m<Z<m=Z=m>Z> ddl?m@Z@mAZA ddlBmCZC e DeE¡ Feƒ ¡ ejde3dd� dS )aú  
Requests HTTP Library
~~~~~~~~~~~~~~~~~~~~~

Requests is an HTTP library, written in Python, for human beings.
Basic GET usage:

   >>> import requests
   >>> r = requests.get('https://www.python.org')
   >>> r.status_code
   200
   >>> b'Python is a programming language' in r.content
   True

... or POST:

   >>> payload = dict(key1='value1', key2='value2')
   >>> r = requests.post('https://httpbin.org/post', data=payload)
   >>> print(r.text)
   {
     ...
     "form": {
       "key1": "value1",
       "key2": "value2"
     },
     ...
   }

The other HTTP methods are supported - see `requests.api`. Full documentation
is at <https://requests.readthedocs.io>.

:copyright: (c) 2017 by Kenneth Reitz.
:license: Apache 2.0, see LICENSE for more details.
é    Né   )ÚRequestsDependencyWarning)Ú__version__c                 C   s@  |   d¡} | dgksJ ‚t| ƒdkr|  d¡ | \}}}t|ƒt|ƒt|ƒ}}}|dks0J ‚|dkr:|dks:J ‚|ri|  d¡d d… \}}}t|ƒt|ƒt|ƒ}}}d|||f  krdd	k sgJ ‚ J ‚d S |r˜|  d¡d d… \}}}t|ƒt|ƒt|ƒ}}}d
|||f  kr“dk s–J ‚ J ‚d S t dt¡ d S )NÚ.Údevé   Ú0r   é   é   )r
   r   r   )é   r   r   )r   r   r   )é   r   r   zYUnable to find acceptable character detection dependency (chardet or charset_normalizer).)ÚsplitÚlenÚappendÚintÚwarningsÚwarnr   )Úurllib3_versionÚchardet_versionÚcharset_normalizer_versionÚmajorÚminorÚpatch© r   úU/var/www/html/automatizacionGV/venv/lib/python3.10/site-packages/requests/__init__.pyÚcheck_compatibility:   s*   


&&ýr   c                 C   sZ   zt tt|  d¡ƒƒ} W n
 ty   Y d S w | g d¢k r+d| › d�}t |t¡ d S d S )Nr   )r   r
   r   zOld version of cryptography (z) may cause slowdown.)ÚlistÚmapr   r   Ú
ValueErrorr   r   r   )Úcryptography_versionÚwarningr   r   r   Ú_check_cryptography]   s   ÿ
ÿür!   z	urllib3 (z) or chardet (z)/charset_normalizer (z$) doesn't match a supported version!ÚHAS_SNIF)Ú	pyopenssl)ÚDependencyWarningÚignore)ÚNullHandler)ÚpackagesÚutils)
Ú
__author__Ú__author_email__Ú	__build__Ú__cake__Ú__copyright__Ú__description__Ú__license__Ú	__title__Ú__url__r   )ÚdeleteÚgetÚheadÚoptionsr   ÚpostÚputÚrequest)
ÚConnectionErrorÚConnectTimeoutÚFileModeWarningÚ	HTTPErrorÚJSONDecodeErrorÚReadTimeoutÚRequestExceptionÚTimeoutÚTooManyRedirectsÚURLRequired)ÚPreparedRequestÚRequestÚResponse)ÚSessionÚsession)ÚcodesÚdefaultT)r   )GÚ__doc__r   Úurllib3Ú
exceptionsr   Úcharset_normalizerr   r   ÚImportErrorÚchardetr   r   r!   ÚAssertionErrorr   r   ÚsslÚgetattrÚurllib3.contribr#   Úinject_into_urllib3Úcryptographyr   Úurllib3.exceptionsr$   ÚsimplefilterÚloggingr&   Ú r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   Úapir2   r3   r4   r5   r   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   rB   ÚmodelsrC   rD   rE   ÚsessionsrF   rG   Ústatus_codesrH   Ú	getLoggerÚ__name__Ú
addHandlerr   r   r   r   Ú<module>   st   #ÿÿ#ÿ
ÿÿüÿÿ€ÿ0(0