2bi x S SK r S SKrS SKrS SKrS SKJr SSKJr S\ S\\ 4S jr
S\ S\ 4S jrS\ S\ 4S
jrg) N)Optional )WINDOWSurlreturnc V SU ; a g U R SS5 S R 5 $ )N:r r )splitlower)r s ڊ/builddir/build/BUILDROOT/alt-python313-pip-23.3.1-3.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/pip/_internal/utils/urls.pyget_url_schemer
s+
#~99S!Q%%'' pathc [ R R [ R R U 5 5 n [ R
R
S[ R R U 5 5 nU$ )z\
Convert a path to a file: URL. The path will be made absolute and have
quoted path parts.
file:) osr normpathabspathurllibparseurljoinrequestpathname2url)r r s r path_to_urlr sO
77BGGOOD12D
,,
w(C(CD(I
JCJr c U R S5 ( d SU < S35 e[ R R U 5 u pn nU( a US:X a SnO [ ( a SU- nO[ SU < 35 e[ R R X#- 5 n[ ( aD U( d= [ U5 S: a. US S
:X a% US [ R ; a USS
S; a USS nU$ )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 url2pathnamelenstring
ascii_letters)r _netlocr s r url_to_pathr, s >> D :3'CD #LL11#6AtQV{* &FsgN
>>&&v}5D INGsNGv+++1I$ABxKr )
r r( urllib.parser urllib.requesttypingr compatr strr
r r, r r