PATH:
opt
/
imunify360
/
venv
/
lib
/
python3.11
/
site-packages
/
pip
/
_internal
/
network
/
__pycache__
/
Editing: lazy_wheel.cpython-311.pyc
� L�i� � � � d Z ddlmZ ddgZddlmZmZ ddlmZ ddl m Z ddlmZ dd l mZ dd lmZmZ ddlmZ ddlmZmZ dd lmZmZmZ ddlmZ ddlmZmZm Z G d� de!� � Z"dd�Z# G d� d� � Z$dS )zLazy ZIP over HTTP� )�annotations�HTTPRangeRequestUnsupported�dist_from_wheel_url)�bisect_left�bisect_right)� Generator)�contextmanager)�NamedTemporaryFile)�Any)� BadZipFile�ZipFile)�NormalizedName)�CONTENT_CHUNK_SIZE�Response)�BaseDistribution�MemoryWheel�get_wheel_distribution)� PipSession)�HEADERS�raise_for_status�response_chunksc � � e Zd ZdS )r N)�__name__� __module__�__qualname__� � ��/builddir/build/BUILD/imunify360-venv-2.6.1/opt/imunify360/venv/lib/python3.11/site-packages/pip/_internal/network/lazy_wheel.pyr r s � � � � � ��Dr �namer �url�str�sessionr �returnr c � � t ||� � 5 }t |j |� � }t || � � cddd� � S # 1 swxY w Y dS )a Return a distribution object from the given wheel URL. This uses HTTP range requests to only fetch the portion of the wheel containing metadata, just enough for the object to be constructed. If such requests are not supported, HTTPRangeRequestUnsupported is raised. N)�LazyZipOverHTTPr r r )r r r"