관리-도구
편집 파일: collector.cpython-39.pyc
a ��Re~D � @ s 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=e<ee< d�dd�Z>G dd� de?�Z@edd�dd�ZAG dd� de?�ZBe<e'dd�dd�ZCe<e'ed�dd �ZDe=ee< d!�d"d#�ZEe;e<e<d$�d%d&�ZFe<e<d'�d(d)�ZGe<e<d'�d*d+�ZHe�Id,ejJ�ZKe<eLe<d-�d.d/�ZMe<e<d�d0d1�ZNe;e<e<ee# d2�d3d4�ZOG d5d6� d6�ZPed7gee# f ed7gee# f d8�d9d:�ZQeQd7ee# d;�d<d=��ZRG d>d7� d7�ZSdNe#ee<e?f eed? dd@�dAdB�ZTdOeeLeSdD�dEdF�ZUdPe#ee' ed7 dG�dHdI�ZVG dJdK� dKe�ZWG dLdM� dM�ZXdS )QzO 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-python39-pip-21.3.1-2.el8.x86_64/opt/alt/python39/lib/python3.9/site-packages/pip/_internal/index/collector.py�_match_vcs_scheme0 s r&