a
    hbòf
  ã                
   @   s`  d Z ddlmZ ddlZddlmZ dZzddlmZ	 W n e
yN   dZ	Y n0 dd„ Zd	d
„ Zzeeje	eƒ W n. eefy    e d eje	e¡e¡ Y n0 zvddlmZ es¼e
dƒ‚zddlZW n e
yÞ   dZY n0 eeddƒ�sddlmZ e ¡  ddlmZ eeƒ W n e
�y,   Y n0 ddlmZ e de¡ ddlmZmZmZmZ ddlm Z m!Z!m"Z"m#Z# ddlm$Z$m%Z% ddl&m'Z' ddl&m(Z( ddl)m*Z*m+Z+m,Z, ddl-m.Z.m/Z/m0Z0m1Z1m2Z2m3Z3m4Z4m5Z5 ddl6m7Z7m8Z8 ddl9m:Z: ddlm;Z;m<Z<m=Z=m>Z>m?Z?m@Z@mAZAmBZBmCZCmDZD ddlEZEddlEmFZF eE GeH¡ IeFƒ ¡ ejdeAd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.
é    )Úurllib3Né   )ÚRequestsDependencyWarning)Ú__version__c                 C   s>  |   d¡} | dgksJ ‚t| ƒdkr.|  d¡ | \}}}t|ƒt|ƒt|ƒ  }}}|dks`J ‚|dkslJ ‚|dksxJ ‚|rÒ|  d¡d d… \}}}t|ƒt|ƒt|ƒ  }}}d	|||f  krÊd
k sÐn J ‚nh|�r2|  d¡d d… \}}}t|ƒt|ƒt|ƒ  }}}d|||f  k�r*dk �s:n J ‚ntdƒ‚d S )NÚ.Údevé   Ú0r   é   é   é   )r   r   r   )é   r   r   )r   r   r   )r   r   r   z7You need either charset_normalizer or chardet installed)ÚsplitÚlenÚappendÚintÚ	Exception)Úurllib3_versionÚchardet_versionÚcharset_normalizer_versionÚmajorÚminorÚpatch© r   úZ/home/httpd/docs/test/DocsMgr/lib/python3.9/site-packages/pip/_vendor/requests/__init__.pyÚcheck_compatibility6   s$    


"&r   c                 C   sT   zt tt|  d¡ƒƒ} W n ty,   Y d S 0 | g d¢k rPd | ¡}t |t¡ d S )Nr   )r   r   é   z4Old version of cryptography ({}) may cause slowdown.)	ÚlistÚmapr   r   Ú
ValueErrorÚformatÚwarningsÚwarnr   )Úcryptography_versionÚwarningr   r   r   Ú_check_cryptographyT   s    
r%   zWurllib3 ({}) or chardet ({})/charset_normalizer ({}) doesn't match a supported version!)ÚWINDOWSz3pip internals: don't import cryptography on WindowsÚHAS_SNIF)Ú	pyopenssl)ÚDependencyWarningÚignore)Ú	__title__Ú__description__Ú__url__r   )Ú	__build__Ú
__author__Ú__author_email__Ú__license__)Ú__copyright__Ú__cake__)Úutils)Úpackages)ÚRequestÚResponseÚPreparedRequest)ÚrequestÚgetÚheadÚpostr   ÚputÚdeleteÚoptions)ÚsessionÚSession)Úcodes)
ÚRequestExceptionÚTimeoutÚURLRequiredÚTooManyRedirectsÚ	HTTPErrorÚConnectionErrorÚFileModeWarningÚConnectTimeoutÚReadTimeoutÚJSONDecodeError)ÚNullHandlerÚdefaultT)r   )JÚ__doc__Úpip._vendorr   r!   Ú
exceptionsr   r   Zpip._vendor.chardetr   r   ÚImportErrorr   r%   ÚAssertionErrorr   r"   r    Úpip._internal.utils.compatr&   ÚsslÚgetattrÚpip._vendor.urllib3.contribr(   Úinject_into_urllib3Zcryptographyr#   Zpip._vendor.urllib3.exceptionsr)   Úsimplefilterr+   r,   r-   r.   r/   r0   r1   r2   r3   Ú r4   r5   Úmodelsr6   r7   r8   Úapir9   r:   r;   r<   r   r=   r>   r?   Úsessionsr@   rA   Ústatus_codesrB   rC   rD   rE   rF   rG   rH   rI   rJ   rK   rL   ÚloggingrM   Ú	getLoggerÚ__name__Ú
addHandlerr   r   r   r   Ú<module>   sb   #
ÿþ

(0