a
    Sicl                  
   @   sP  d Z ddlZddlZddlmZ zddlmZ W n eyF   dZY n0 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 z^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y4   Y n0 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/m0Z0m1Z1 ddlm2Z2m3Z3m4Z4m5Z5m6Z6m7Z7m8Z8m9Z9m:Z:m;Z; ddl<m=Z=m>Z>m?Z? ddl@mAZAmBZB ddlCmDZD eEeFGe  ejde4d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s`J |dkslJ |dksxJ |r| dd d \}}}t|t|t|  }}}d	|||f  krd
k sn 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)Zurllib3_versionchardet_versioncharset_normalizer_versionmajorminorpatch r   M/var/www/html/django/DPS/env/lib/python3.9/site-packages/requests/__init__.pycheck_compatibility:   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_cryptographyY   s    r#   zWurllib3 ({}) or chardet ({})/charset_normalizer ({}) 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   )H__doc__r   Zurllib3
exceptionsr   Zcharset_normalizerr   r   ImportErrorZchardetr   r   r#   AssertionErrorr   r    r   sslgetattrZurllib3.contribr%   Zinject_into_urllib3Zcryptographyr!   Zurllib3.exceptionsr&   simplefilterloggingr(    r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   apir4   r5   r6   r7   r   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   rD   modelsrE   rF   rG   sessionsrH   rI   Zstatus_codesrJ   	getLogger__name__
addHandlerr   r   r   r   <module>   sb   #



0(0