관리-도구
편집 파일: session.cpython-37.pyc
B ��Reh; � @ s� d Z ddlZddlZddlZddlZddlZddlZddlZddl Z ddl mZmZm Z ddlmZ ddlmZmZ ddlmZ ddlmZ ddlmZ dd lmZ dd lmZ ddlmZ ddl m!Z! dd l"m#Z#m$Z$ ddl%m&Z& ddl'm(Z(m)Z)m*Z* ddl+m,Z, ddl-m.Z. e,�rXddl/m0Z0m1Z1m2Z2m3Z3m4Z4 ddl5m6Z6 e3e7e7e2e4e8e7f f Z9e�:e;�Z<e j=ded� ddddddgZ>dZ?dd� Z@dd � ZAG d!d"� d"e�ZBG d#d$� d$e�ZCG d%d&� d&e�ZDG d'd(� d(ejE�ZFdS ))zhPipSession and supporting code, containing all pip-specific network request configuration and behavior. � N)�requests�six�urllib3)�CacheControlAdapter)�BaseAdapter�HTTPAdapter)�Response)�CaseInsensitiveDict)�parse)�InsecureRequestWarning)�__version__)�MultiDomainBasicAuth)� SafeFileCache)�has_tls� ipaddress)�libc_ver)�build_url_from_netloc�get_installed_version�parse_netloc)�MYPY_CHECK_RUNNING)�url_to_path)�Iterator�List�Optional�Tuple�Union)�Link�ignore)�category)�https�*r )r � localhostr )r z127.0.0.0/8r )r z::1/128r )�filer N)�sshr r )� BUILD_BUILDID�BUILD_ID�CI� PIP_IS_CIc C s t dd� tD ��S )z? Return whether it looks like pip is running under CI. c s s | ]}|t jkV qd S )N)�os�environ)�.0�name� r, ��/builddir/build/BUILDROOT/alt-python37-pip-20.2.4-6.el8.x86_64/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/network/session.py� <genexpr>` s z looks_like_ci.<locals>.<genexpr>)�any�CI_ENVIRONMENT_VARIABLESr, r, r, r- � looks_like_ciX s r1 c C sL dt d�t�� dt�� id�} | d d dkr@t�� | d d<