Edit File: sources.cpython-311.pyc
� Q�d� � �� � d dl Z d dlZd dlZd dlZd dlmZmZmZmZ d dl m Z d dlmZ d dl mZmZ d dlmZ e j e� � Zee Zee Zeegee f Zeegef Z G d� d� � Zd ed efd�Z G d� d e� � Z G d� de� � Z G d� de� � Z G d� de� � Z dededededed eee ee f fd�Z!dS )� N)�Callable�Iterable�Optional�Tuple)�InstallationCandidate)�Link)�path_to_url�url_to_path)�is_urlc �N � e Zd Zedee fd�� � Zdefd�Zde fd�Z dS )� LinkSource�returnc � � t � � �)z,Returns the underlying link, if there's one.��NotImplementedError��selfs �l/builddir/build/BUILD/cloudlinux-venv-1.0.2/venv/lib/python3.11/site-packages/pip/_internal/index/sources.py�linkzLinkSource.link s � � "�#�#�#� c � � t � � �)z9Candidates found by parsing an archive listing HTML file.r r s r �page_candidateszLinkSource.page_candidates � � �!�#�#�#r c � � t � � �)z,Links found by specifying archives directly.r r s r � file_linkszLinkSource.file_links r r N)�__name__� __module__�__qualname__�propertyr r r �FoundCandidatesr � FoundLinksr � r r r r ss � � � � � � �$�h�t�n� $� $� $� �X�$�$�� $� $� $� $�$�J� $� $� $� $� $� $r r �file_urlr c �B � t j | d�� � d dk S )NF)�strictr z text/html)� mimetypes� guess_type)r# s r � _is_html_filer( # s"