Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
usr
/
lib
/
python3.8
/
site-packages
/
pip
/
_internal
/
models
/
__pycache__
[ HOME ]
Exec
Submit
File Name : search_scope.cpython-38.opt-1.pyc
U ��.e� � @ s� d dl Z d dlZd dlZd dlZd dlmZ d dlmZ d dl m Z d dlmZ d dl mZmZ d dlmZ er|d dlmZ e�e�ZG d d � d e�ZdS )� N)�canonicalize_name)�parse)�PyPI)�HAS_TLS)�normalize_path�redact_auth_from_url)�MYPY_CHECK_RUNNING)�Listc @ s4 e Zd ZdZedd� �Zdd� Zdd� Zdd � Zd S )�SearchScopezF Encapsulates the locations that pip is configured to search. c C s~ g }|D ]0}|� d�r.t|�}tj�|�r.|}|�|� qtsrt�||�D ]&}t � |�}|jdkrJt� d� qrqJ| ||d�S )zQ Create a SearchScope object after normalizing the `find_links`. �~Zhttpszipip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.�� find_links� index_urls)� startswithr �os�path�exists�appendr � itertools�chain�urllib_parseZurlparseZscheme�loggerZwarning)�clsr r Zbuilt_find_links�linkZnew_linkZparsed� r �E/usr/lib/python3.8/site-packages/pip/_internal/models/search_scope.py�create s&