관리-도구
편집 파일: session.cpython-36.pyc
3 �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 Z9ej:e;�Z<e j=ded� d-d.d/d0d1d2gZ>d3Z?d!d"� Z@d#d$� ZAG d%d&� d&e�ZBG d'd(� d(e�ZCG d)d*� d*e�ZDG d+d,� d,ejE�ZFdS )4zhPipSession 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�*� localhost�127.0.0.0/8�::1/128�file�ssh� 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-python36-pip-20.2.4-5.el8.x86_64/opt/alt/python36/lib/python3.6/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 r3 c C sL dt d�tj� dtj� id�} | d d dkr@tj� | d d<