PATH:
opt
/
alt
/
python310
/
lib
/
python3.10
/
site-packages
/
pip
/
_internal
/
utils
/
__pycache__
o ai� � @ sv d dl Z d dlZd dlZd dlZd dlmZ ddlmZ de dee fdd�Z d e de fd d�Zde de fdd �ZdS )� N)�Optional� )�WINDOWS�url�returnc C s d| vrd S | � dd�d �� S )N�:r r )�split�lower)r � r ��/builddir/build/BUILDROOT/alt-python310-pip-21.3.1-5.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_internal/utils/urls.py�get_url_scheme s r �pathc 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. �file:) �osr �normpath�abspath�urllib�parse�urljoin�request�pathname2url)r r r r r �path_to_url s r c C s� | � d�s J d| �d���tj�| �\}}}}}|r|dkr!d}ntr(d| }ntd| ����tj�|| �}tr\|s\t|�dkr\|d d kr\|d t j v r\|dd � dv r\|dd� }|S )z( Convert a file: URL to a path. r z1You can only turn file: urls into filenames (not �)� localhost� z\\z8non-local file URIs are not supported on this platform: � r �/r � � )r z:/N)� startswithr r �urlsplitr � ValueErrorr �url2pathname�len�string� ascii_letters)r �_�netlocr r r r �url_to_path s0 � � ���r( ) r r$ �urllib.parser �urllib.request�typingr �compatr �strr r r( r r r r �<module> s
[-] subprocess.cpython-310.pyc
[edit]
[-] parallel.cpython-310.pyc
[edit]
[-] entrypoints.cpython-310.pyc
[edit]
[-] compat.cpython-310.pyc
[edit]
[-] egg_link.cpython-310.pyc
[edit]
[-] direct_url_helpers.cpython-310.pyc
[edit]
[-] temp_dir.cpython-310.pyc
[edit]
[-] misc.cpython-310.pyc
[edit]
[-] __init__.cpython-310.pyc
[edit]
[-] wheel.cpython-310.pyc
[edit]
[-] packaging.cpython-310.pyc
[edit]
[-] hashes.cpython-310.pyc
[edit]
[-] datetime.cpython-310.pyc
[edit]
[-] virtualenv.cpython-310.pyc
[edit]
[-] appdirs.cpython-310.pyc
[edit]
[-] deprecation.cpython-310.pyc
[edit]
[+]
..
[-] pkg_resources.cpython-310.pyc
[edit]
[-] inject_securetransport.cpython-310.pyc
[edit]
[-] encoding.cpython-310.pyc
[edit]
[-] filesystem.cpython-310.pyc
[edit]
[-] setuptools_build.cpython-310.pyc
[edit]
[-] unpacking.cpython-310.pyc
[edit]
[-] logging.cpython-310.pyc
[edit]
[-] filetypes.cpython-310.pyc
[edit]
[-] glibc.cpython-310.pyc
[edit]
[-] compatibility_tags.cpython-310.pyc
[edit]
[-] _log.cpython-310.pyc
[edit]
[-] urls.cpython-310.pyc
[edit]
[-] models.cpython-310.pyc
[edit]
[-] distutils_args.cpython-310.pyc
[edit]