| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.7/site-packages/pip/_internal/utils/__pycache__/ |
Upload File : |
B
�N�a� � @ sp d dl Z d dlZd dlZd dlZd dlmZ ddlmZ e ee d�dd�Z
e e d�d d
�Ze e d�dd�ZdS )
� N)�Optional� )�WINDOWS)�url�returnc C s d| krd S | � dd�d �� S )N�:r r )�split�lower)r � r
�</usr/lib/python3.7/site-packages/pip/_internal/utils/urls.py�get_url_scheme
s r )�pathr c C s. t j�t j�| ��} tj�dtj�| ��}|S )zh
Convert a path to a file: URL. The path will be made absolute and have
quoted path parts.
zfile:) �osr
�normpath�abspath�urllib�parseZurljoin�requestZpathname2url)r
r r
r
r �path_to_url s r c C s� | � d�std| �d���tj�| �\}}}}}|r<|dkrBd}ntrPd| }ntd| ����tj�|| �}tr�|s�t |�dkr�|d d
kr�|d t
jkr�|dd
� dkr�|dd� }|S )z(
Convert a file: URL to a path.
zfile:z1You can only turn file: urls into filenames (not �)Z localhost� z\\z8non-local file URIs are not supported on this platform: � r �/r � � )r z:/N)�
startswith�AssertionErrorr r Zurlsplitr �
ValueErrorr Zurl2pathname�len�stringZ
ascii_letters)r �_Znetlocr
r
r
r �url_to_path s&