관리-도구
편집 파일: collector.cpython-311.pyc
� �Re~D � �D � 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 ej5 e6� � Z7ej8 j9 j: Z;ee<e<f Z=de<dee< fd�Z> G d� de?� � Z@deddfd�ZA G d� de?� � ZBde<de'ddfd�ZCde<de'defd�ZDde=dee< fd�ZEd e;d!e<de<fd"�ZFd#e<de<fd$�ZGd#e<de<fd%�ZH ejI d&ejJ � � ZKd'e<d(eLde<fd)�ZMde<de<fd*�ZNd+e;d!e<d,e<dee# fd-�ZO G d.� d/� � ZPd0ed1gee# f ded1gee# f fd2�ZQeQd3d1dee# fd4�� � ZR G d5� d1� � ZS dCd6e#d7ee<e?f d8eed9 ddfd:�ZTdDded<eLdeSfd=�ZU dCd6e#dee' ded1 fd>�ZV G d?� d@e� � ZW G dA� dB� � ZXdS )EzO 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 � � t j D ]D}| � � � � |� � r| t |� � dv r|c S �EdS )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 �schemes ��/builddir/build/BUILDROOT/alt-python311-pip-21.3.1-3.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_internal/index/collector.py�_match_vcs_schemer'