Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
pip
/
_internal
/
network
/
__pycache__
[ HOME ]
Exec
Submit
download.cpython-312.pyc
� p�/i�1 � �� � d Z ddlmZ ddlZddlZddlZddlZddlm Z m Z ddlmZ ddl mZ ddlmZ ddlmZ dd lmZ dd lmZ ddlmZ ddlmZ dd lmZmZ ddlm Z m!Z! ddl"m#Z# ddl$m%Z% ddl&m'Z'm(Z( ddl)m*Z*m+Z+ ddl,m-Z-m.Z.m/Z/ ddl0m1Z1m2Z2m3Z3 ejh e5� Z6dd�Z7d d�Z8 d! d"d�Z9d#d�Z:d$d�Z;d%d�Z<e G d� d� � Z= G d� d� Z>y)&z(Download files with progress indicators.� )�annotationsN)�Iterable�Mapping)� dataclass)� HTTPStatus)�BinaryIO)�PreparedRequest)�Response)�HTTPResponse)�HTTPHeaderDict)�ReadTimeoutError)�BarType�get_download_progress_renderer)�IncompleteDownloadError�NetworkConnectionError)�PyPI)�Link)� SafeFileCache� is_from_cache)�CacheControlAdapter� PipSession)�HEADERS�raise_for_status�response_chunks)�format_size�redact_auth_from_url�splitextc �h � t | j d � S # t t t f$ r Y y w xY w)N�content-length)�int�headers� ValueError�KeyError� TypeError��resps �M/opt/hc_python/lib/python3.12/site-packages/pip/_internal/network/download.py�_get_http_response_sizer( s5 � ���4�<�<� 0�1�2�2����)�,� ���s � �1�1c �l � | j j d| j j d� � S )z� Return either the ETag or Last-Modified header (or None if neither exists). The return value can be used in an If-Range header. �etagz last-modified)r! �getr% s r'