관리-도구
편집 파일: __init__.cpython-38.pyc
U ʗRe: � @ sP d Z ddlZddlmZ ddlmZ dZzddlmZ W n e k rP dZ Y nX dd� Zd d � Zzeeje e� W n0 e efk r� e�d�eje e�e� Y nX zxddlmZ es�e d ��zddlZW n e k r� dZY nX eedd��sddlmZ e�� ddlmZ ee� W n e k �r4 Y nX ddlmZ e�de� ddlZddlmZ ddlm Z m!Z! 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/m0Z0m1Z1m2Z2m3Z3 ddlm4Z4m5Z5m6Z6m7Z7m8Z8m9Z9m:Z:m;Z;m<Z<m=Z= ddl>m?Z?m@Z@mAZA ddlBmCZCmDZD ddlEmFZF e�GeH��Ie� � ejde6dd� 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)�urllib3� )�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)�urllib3_version�chardet_version�charset_normalizer_version�major�minor�patch� r ��/builddir/build/BUILDROOT/alt-python38-pip-22.2.1-2.el8.x86_64/opt/alt/python38/lib/python3.8/site-packages/pip/_vendor/requests/__init__.py�check_compatibility7 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 � z4Old version of cryptography ({}) may cause slowdown.) �list�mapr r � ValueError�format�warnings�warnr )�cryptography_version�warningr r r �_check_cryptographyV s �r&