관리-도구
편집 파일: __init__.cpython-37.pyc
B ^��`+ � @ sn d Z ddlZddlZddlmZ yddlmZ W n ek rH dZY nX yddl mZ W n ek rr dZ Y nX dd� Zdd � Zyeeje e� W n0 e efk r� e�d �eje e�e� Y nX y`yddlZW n ek r� dZY nX eedd��s&dd lmZ e�� ddlmZ ee� W n ek �r> Y nX ddlmZ e�de� ddlmZmZmZmZ ddlmZmZm Z m!Z! ddlm"Z"m#Z# ddl$m%Z% ddl$m&Z& ddl'm(Z(m)Z)m*Z* ddl+m,Z,m-Z-m.Z.m/Z/m0Z0m1Z1m2Z2m3Z3 ddl4m5Z5m6Z6 ddl7m8Z8 ddlm9Z9m:Z:m;Z;m<Z<m=Z=m>Z>m?Z?m@Z@mAZA ddlBZBddlBmCZC eB�DeE��FeC� � ejde?dd� 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�|dkslt�|dksxt�|r�|� d�d d� \}}}t|�t|�t|� }}}d |||f kr�d k s�n t�nh|�r2|� d�d d� \}}}t|�t|�t|� }}}d|||f k�r*dk �s:n t�ntd ��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�AssertionError�len�append�int� Exception)Zurllib3_version�chardet_version�charset_normalizer_version�major�minor�patch� r �B/opt/alt/python37/lib/python3.7/site-packages/requests/__init__.py�check_compatibility9 s$ "&r c C sV yt tt| �d���} W n tk r, d S X | dddgk rRd�| �}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_cryptographyW s r$ zWurllib3 ({}) or chardet ({})/charset_normalizer ({}) doesn't match a supported version!ZHAS_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)�NullHandler�defaultT)r )G�__doc__Zurllib3r � exceptionsr Zcharset_normalizerr r �ImportErrorZchardetr r r$ r r r! r Zssl�getattrZurllib3.contribr% Zinject_into_urllib3Zcryptographyr"