관리-도구
편집 파일: __init__.cpython-310.pyc
o ƚRe� � @ sX d Z ddlmZ ddlZddlmZ dZzddlmZ W n e y' dZ Y nw dd� Zd d � Zz eeje e� W n e efyP e�d�eje e�e� Y nw z:ddlmZ es^e d ��zddlZW n e yo dZY nw eedd�s�ddlmZ e�� ddlmZ ee� W n e y� Y nw ddlmZ e�de� ddlmZmZmZmZ ddlm Z m!Z!m"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/m0Z0m1Z1m2Z2m3Z3m4Z4m5Z5 ddl6m7Z7m8Z8 ddl9m:Z: ddlm;Z;m<Z<m=Z=m>Z>m?Z?m@Z@mAZAmBZBmCZC ddlDZDddlDmEZE eD�FeG��HeE� � ejdeAdd � 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. � )�urllib3N� )�RequestsDependencyWarning)�__version__c C s< | � d�} | dgksJ �t| �dkr| �d� | \}}}t|�t|�t|�}}}|dks0J �|dks6J �|dks<J �|rk|� d�d d� \}}}t|�t|�t|�}}}d |||f krfd k siJ � J �d S |r�|� d�d d� \}}}t|�t|�t|�}}}d|||f kr�dk s�J � J �d S td ��)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 ��/builddir/build/BUILDROOT/alt-python310-pip-21.3.1-3.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_vendor/requests/__init__.py�check_compatibility6 s$ &&r c C sX zt tt| �d���} W n ty Y d S w | g d�k r*d�| �}t�|t� d S 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)�NullHandler�defaultT)r )I�__doc__�pip._vendorr r! � exceptionsr r �pip._vendor.chardetr r �ImportErrorr r% �AssertionErrorr r"