관리-도구
편집 파일: collector.cpython-310.pyc
o ƚRe~D � @ sR d Z ddlZddlZddlZddlZddlZddlZddlZddlZ ddl Z ddlZddl mZ ddlmZmZmZmZmZmZmZmZ ddlmZmZ ddlmZ ddlmZmZ ddl m!Z! dd l"m#Z# dd l$m%Z% ddl&m'Z' ddl(m)Z) dd l*m+Z+ ddl,m-Z-m.Z. ddl/m0Z0 ddl1m2Z2m3Z3m4Z4 e�5e6�Z7ej8j9j:Z;ee<e<f Z=de<dee< fdd�Z>G dd� de?�Z@deddfdd�ZAG dd� de?�ZBde<de'ddfdd�ZCde<de'defd d!�ZDd"e=dee< fd#d$�ZEd%e;d&e<de<fd'd(�ZFd)e<de<fd*d+�ZGd)e<de<fd,d-�ZHe�Id.ejJ�ZKd/e<d0eLde<fd1d2�ZMde<de<fd3d4�ZNd5e;d&e<d6e<dee# fd7d8�ZOG d9d:� d:�ZPd;ed<gee# f ded<gee# f fd=d>�ZQeQd?d<dee# fd@dA��ZRG dBd<� d<�ZS dSdCe#dDee<e?f dEeedF ddfdGdH�ZTdTdedJeLdeSfdKdL�ZU dSdCe#dee' ded< fdMdN�ZVG dOdP� dPe�ZWG dQdR� dR�ZXdS )UzO The main purpose of this module is to expose LinkCollector.collect_sources(). � N)�Values)�Callable�Iterable�List�MutableMapping� NamedTuple�Optional�Sequence�Union)�html5lib�requests)�Response)� RetryError�SSLError)�NetworkConnectionError)�Link)�SearchScope)� PipSession)�raise_for_status)�is_archive_file)�pairwise�redact_auth_from_url)�vcs� )�CandidatesFromPage� LinkSource�build_source�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$ ��/builddir/build/BUILDROOT/alt-python310-pip-21.3.1-3.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_internal/index/collector.py�_match_vcs_scheme0 s �r&