zmc
2023-12-22 9fdbf60165db0400c2e8e6be2dc6e88138ac719a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
U
H=®d÷ã@shddlZddlZddlmZddlmZddlmZerLddl    m
Z
m Z m Z dd„Z dd    „Zd
d „ZdS) éN)Úparse)Úrequest)ÚMYPY_CHECK_RUNNING)ÚOptionalÚTextÚUnioncCs d|kr dS| dd¡d ¡S)Nú:ér)ÚsplitÚlower)Úurl©r úOD:\z\workplace\VsCode\pyvenv\venv\Lib\site-packages\pip/_internal/utils/urls.pyÚget_url_scheme srcCs*tj tj |¡¡}t dt |¡¡}|S)zh
    Convert a path to a file: URL.  The path will be made absolute and have
    quoted path parts.
    úfile:)ÚosÚpathÚnormpathÚabspathÚ urllib_parseÚurljoinÚurllib_requestÚ pathname2url)rr r r rÚ path_to_urlsrcCsz| d¡stdjftƒŽƒ‚t |¡\}}}}}|r<|dkrBd}n&tjdkrVd|}ntdjftƒŽƒ‚t     
||¡}|S)z(
    Convert a file: URL to a path.
    rz9You 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 Ú_Únetlocrr r rÚ url_to_paths" ÿÿ 
 
ÿÿr()rr"Zpip._vendor.six.moves.urllibrrrrÚpip._internal.utils.typingrÚtypingrrrrrr(r r r rÚ<module>s