/usr/share/cagefs-skeleton/usr/local/lib/python3.9/site-packages/pip/_internal/index/__pycache__
a ���h9? � @ s� d Z ddlmZ ddlZddlZddlZddlZddlZddl Z ddl Z ddlZddl ZddlmZmZmZ ddlmZ ddlmZ ddlmZ ddlmZmZmZ dd lmZ dd lmZ ddl m!Z!m"Z" ddl#m$Z$ dd l%m&Z& ddl'm(Z( ddl)m*Z* ddl+m,Z, ddl-m.Z. ddl/m0Z0 ddl1m2Z2 ddl3m4Z4m5Z5m6Z6 e �7e8�Z9ee:e:f Z;ddd�dd�Z<G dd� de=�Z>ddd�d d!�Z?G d"d#� d#e=�Z@dd$dd%�d&d'�ZAdd$dd%�d(d)�ZBd*dd+�d,d-�ZCG d.d/� d/�ZDG d0d1� d1e�ZEd1d1d2�d3d4�ZFeFd5d6d7�d8d9��ZGed:d;�G d<d5� d5��ZHG d=d>� d>e�ZIdQd?d@dAddB�dCdD�ZJdRddEd5dF�dGdH�ZKd?d$dIdJ�dKdL�ZLG dMdN� dNe�ZMG dOdP� dP�ZNdS )SzO The main purpose of this module is to expose LinkCollector.collect_sources(). � )�annotationsN)�Iterable�MutableMapping�Sequence)� dataclass)� HTMLParser)�Values)�Callable� NamedTuple�Protocol)�requests)�Response)� RetryError�SSLError)�NetworkConnectionError)�Link)�SearchScope)� PipSession)�raise_for_status)�is_archive_file��redact_auth_from_url)�vcs� )�CandidatesFromPage� LinkSource�build_source�str� str | None��url�returnc C s6 t jD ]*}| �� �|�r| t|� dv r| S qdS )zgLook for VCS schemes in the URL. Returns the matched VCS scheme, or None if there's no match. z+:N)r �schemes�lower� startswith�len)r �scheme� r'