Server IP : 104.21.93.192 / Your IP : 216.73.216.73 Web Server : LiteSpeed System : Linux premium900.web-hosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : redwjova ( 1790) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python37/lib/python3.7/site-packages/pip/_internal/utils/__pycache__/ |
Upload File : |
B ��Re� � @ sh d dl Z d dlZd dlmZ d dlmZ d dlmZ erLd dl m Z mZmZ dd� Z dd � Zd d� ZdS )� N)�parse)�request)�MYPY_CHECK_RUNNING)�Optional�Text�Unionc C s d| krd S | � dd�d �� S )N�:� r )�split�lower)�url� r ��/builddir/build/BUILDROOT/alt-python37-pip-20.2.4-6.el8.x86_64/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/utils/urls.py�get_url_scheme s r c C s* t j�t j�| ��} t�dt�| ��}|S )zh Convert a path to a file: URL. The path will be made absolute and have quoted path parts. zfile:)�os�path�normpath�abspath�urllib_parse�urljoin�urllib_request�pathname2url)r r r r r �path_to_url s r c C sz | � d�stdjf t� ���t�| �\}}}}}|r<|dkrBd}n&tjdkrVd| }ntdjf t� ���t � || �}|S )z( Convert a file: URL to a path. zfile:z9You can only turn file: urls into filenames (not {url!r})� localhost� �win32z\\z?non-local file URIs are not supported on this platform: {url!r})� startswith�AssertionError�format�localsr �urlsplit�sys�platform� ValueErrorr �url2pathname)r �_�netlocr r r r �url_to_path s r'