관리-도구
편집 파일: __init__.cpython-38.pyc
U .?�f� � @ sZ d Z ddlZddlZddlmZ zddlmZ W n ek rH dZY nX zddl mZ W n ek rr dZ Y nX dd� Zdd � Zzeeje e� W n0 e efk r� e�d �eje e�e� Y nX z`zddlZW n ek r� dZY nX eedd��s&dd lmZ e�� ddlmZ ee� W n ek �r> Y nX ddlmZ e�de� ddlZddlmZ ddlmZmZ ddlm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(mZ ddl)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0m1Z1 ddlm2Z2m3Z3m4Z4m5Z5m6Z6m7Z7m8Z8m9Z9m:Z:m;Z; ddl<m=Z=m>Z>m?Z? ddl@mAZAmBZB ddlCmDZD e�EeF��Ge� � ejde4dd� dS )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�} | dgkst�t| �dkr.| �d� | \}}}t|�t|�t|� }}}|dks`t�|dkrt|dkstt�|r�|� d�d d� \}}}t|�t|�t|� }}}d|||f kr�d k s�n t�nl|�r.|� d�d d� \}}}t|�t|�t|� }}}d |||f k�r&dk �s:n t�nt�dt� 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�AssertionError�len�append�int�warnings�warnr )�urllib3_version�chardet_version�charset_normalizer_version�major�minor�patch� r �?/opt/hc_python/lib/python3.8/site-packages/requests/__init__.py�check_compatibility: s* "&�r c C sX zt tt| �d���} W n tk r. Y d S X | dddgk rTd�| �}t�|t� d S )Nr r r r z4Old version of cryptography ({}) may cause slowdown.) �list�mapr r � ValueError�formatr r r )�cryptography_version�warningr r r �_check_cryptography] 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 �urllib3� exceptionsr Zcharset_normalizerr r �ImportError�chardetr r r# r r r r �ssl�getattrZurllib3.contribr% Zinject_into_urllib3Zcryptographyr! Zurllib3.exceptionsr&