• File: parse.cpython-38.opt-2.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/opt/alt/python38/lib64/python3.8/urllib/__pycache__/parse.cpython-38.opt-2.pyc
  • Date Modified: 10/26/2026 8:15 PM
  • File size: 25.24 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
U

je@sddlZddlZddlZddlZddlZdddddddd	d
ddd
dddddddddgZdddddddddd d!d"d#d$d%d&d'd(d)gZdddddd*dddd!dd d+d"d#d$d,d&d'd%d-d.d/d(d)gZddd0d"dddd d#d$d1d2d!d%d3gZdd0d4d5d*ddd+d1d2g
Z	dddddd d!dd#d$d1d2gZ
ddd0ddd5dddd d+dd"g
Zd6Zd7Z
d8d9d:gZd;ZiZd<d=Zd>Zd?Zd@dAZeefdBdCZeefdDdEZdFdGZGdHdIdIeZGdJdKdKeZGdLdMdMeZGdNdOdOeeZGdPdQdQeeZddRlmZeddSZeddTZ eddUZ!dVe_"dWej#_"dXej$_"dYe _"dZe j%_"d[e j&_"d\e j'_"d]e j(_"d^e j$_"d_e!_"e j%j"e!j%_"e j&j"e!j&_"e j'j"e!j'_"d`e!j)_"e j(j"e!j(_"e j$j"e!j$_"eZ*GdaddeeZ+Gdbdde eZ,Gdcdde!eZ-GddddeeZ.Gdedde eZ/Gdfdde!eZ0dgdhZ1e1[1ddjdZ2dkdlZ3ddmdnZ4dodpZ5dqdrZ6dsdtZ7dudvZ8ddwdZ9dxdZ:dydZ;ddzdZ<d{dZ=d|Z>da?d}dZ@eAd~ZBdddZCddd	ZDddd
ZEdddZFeGdZHeIeHZJiZKGdddejLZMdddZNdddZOddd
ZPddddeOfddZQddZRddZSddZTddZUdaVddZWddZXdaYddZZddZ[ddZ\ddZ]ddZ^ddZ_da`ddZadddZbdddZcddZdddZeddZfddZgddZhddZiddZjddZkdS)Nurlparse
urlunparseurljoin	urldefragurlsplit
urlunsplit	urlencodeparse_qs	parse_qslquote
quote_plusquote_from_bytesunquoteunquote_plusunquote_to_bytesDefragResultParseResultSplitResultDefragResultBytesParseResultBytesSplitResultBytesZftphttpZgopherZnntpZimapZwaisfileZhttpsZshttpZmmsZprosperoZrtspZrtspuZsftpZsvnzsvn+sshZwsZwssZtelnetZsnewsZrsyncZnfsZgitzgit+sshZhdlZsipZsipsZtelZmailtoZnewszAabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+-.z!	

 	

cCsttdSN)_parse_cacheclear
_safe_quotersr"r"1/opt/alt/python38/lib64/python3.8/urllib/parse.pyclear_cache`sr$asciistrictcCs|Srr")objr"r"r#_nooposr(cCs|||Srencode)r'encodingerrorsr"r"r#_encode_resultrsr-cstfdd|DS)Nc3s"|]}|r|ndVqdS)rNdecode.0xr+r,r"r#	<genexpr>xsz_decode_args.<locals>.<genexpr>)tuple)argsr+r,r"r3r#_decode_argsvsr7cGsVt|dt}|ddD]}|rt|t|krtdq|rH|tfSt|tfS)Nrz$Cannot mix str and non-str arguments)
isinstancestr	TypeErrorr(r7r-)r6Z	str_inputargr"r"r#_coerce_argszs

r=c@seZdZdZdddZdS)_ResultMixinStrr"r%r&cs|jfdd|DS)Nc3s|]}|VqdSrr)r0r3r"r#r4sz)_ResultMixinStr.encode.<locals>.<genexpr>)_encoded_counterpartselfr+r,r"r3r#r*sz_ResultMixinStr.encodeN)r%r&)__name__
__module____qualname__	__slots__r*r"r"r"r#r>sr>c@seZdZdZdddZdS)_ResultMixinBytesr"r%r&cs|jfdd|DS)Nc3s|]}|VqdSrr.r0r3r"r#r4sz+_ResultMixinBytes.decode.<locals>.<genexpr>)_decoded_counterpartr@r"r3r#r/sz_ResultMixinBytes.decodeN)r%r&)rBrCrDrEr/r"r"r"r#rFsrFc@s@eZdZdZeddZeddZeddZedd	Zd
S)_NetlocResultMixinBaser"cCs
|jdS)Nr	_userinforAr"r"r#usernamesz_NetlocResultMixinBase.usernamecCs
|jdS)Nr8rIrKr"r"r#passwordsz_NetlocResultMixinBase.passwordcCsD|jd}|sdSt|tr dnd}||\}}}|||S)Nr%%)	_hostinfor9r:	partitionlower)rAhostname	separatorZpercentZzoner"r"r#rSs
z_NetlocResultMixinBase.hostnamecCsl|jd}|dk	rhzt|d}Wn(tk
rHd|}t|dYnXd|kr^dkshntd|S)Nr8
z+Port could not be cast to integer value as rizPort out of range 0-65535)rPint
ValueError)rAportmessager"r"r#rXs

z_NetlocResultMixinBase.portN)	rBrCrDrEpropertyrLrMrSrXr"r"r"r#rHs



rHc@s(eZdZdZeddZeddZdS)_NetlocResultMixinStrr"cCsD|j}|d\}}}|r4|d\}}}|s<d}nd}}||fS)N@:netloc
rpartitionrQrAr_ZuserinfoZ	have_infohostinforLZ
have_passwordrMr"r"r#rJsz_NetlocResultMixinStr._userinfocCsl|j}|d\}}}|d\}}}|rL|d\}}}|d\}}}n|d\}}}|sdd}||fS)Nr\[]r]r^rAr__rbhave_open_br	bracketedrSrXr"r"r#rPsz_NetlocResultMixinStr._hostinfoNrBrCrDrErZrJrPr"r"r"r#r[s

r[c@s(eZdZdZeddZeddZdS)_NetlocResultMixinBytesr"cCsD|j}|d\}}}|r4|d\}}}|s<d}nd}}||fS)N@:r^rar"r"r#rJsz!_NetlocResultMixinBytes._userinfocCsl|j}|d\}}}|d\}}}|rL|d\}}}|d\}}}n|d\}}}|sdd}||fS)Nrk[]rlr^rer"r"r#rPsz!_NetlocResultMixinBytes._hostinfoNrir"r"r"r#rjs

rj)
namedtuplezurl fragmentz!scheme netloc path query fragmentz(scheme netloc path params query fragmentz
DefragResult(url, fragment)

A 2-tuple that contains the url without fragment identifier and the fragment
identifier as a separate argument.
z$The URL with no fragment identifier.z
Fragment identifier separated from URL, that allows indirect identification of a
secondary resource by reference to a primary resource and additional identifying
information.
z
SplitResult(scheme, netloc, path, query, fragment)

A 5-tuple that contains the different components of a URL. Similar to
ParseResult, but does not split params.
z%Specifies URL scheme for the request.z0
Network location where the request is made to.
z@
The hierarchical path, such as the path to a file to download.
z
The query component, that contains non-hierarchical data, that along with data
in path component, identifies a resource in the scope of URI's scheme and
network location.
z
Fragment identifier, that allows indirect identification of a secondary resource
by reference to a primary resource and additional identifying information.
zq
ParseResult(scheme, netloc, path, params, query, fragment)

A 6-tuple that contains components of a parsed URL.
z
Parameters for last path element used to dereference the URI in order to provide
access to perform some operation on the resource.
c@seZdZdZddZdS)rr"cCs |jr|jd|jS|jSdSN#fragmenturlrKr"r"r#geturlIszDefragResult.geturlNrBrCrDrErur"r"r"r#rGsc@seZdZdZddZdS)rr"cCst|SrrrKr"r"r#ruQszSplitResult.geturlNrvr"r"r"r#rOsc@seZdZdZddZdS)rr"cCst|SrrrKr"r"r#ruVszParseResult.geturlNrvr"r"r"r#rTsc@seZdZdZddZdS)rr"cCs |jr|jd|jS|jSdS)N#rrrKr"r"r#ru\szDefragResultBytes.geturlNrvr"r"r"r#rZsc@seZdZdZddZdS)rr"cCst|SrrwrKr"r"r#rudszSplitResultBytes.geturlNrvr"r"r"r#rbsc@seZdZdZddZdS)rr"cCst|SrrxrKr"r"r#ruiszParseResultBytes.geturlNrvr"r"r"r#rgscCs4ttfttfttff}|D]\}}||_||_qdSr)rrrrrrr?rG)Z
_result_pairsZ_decodedZ_encodedr"r"r#_fix_result_transcodingmsrzTc
Csft||\}}}t|||}|\}}}}}|tkrHd|krHt|\}}nd}t||||||}	||	S)N;r)r=ruses_params_splitparamsr)
rtschemeallow_fragments_coerce_resultZsplitresultr_queryrsparamsresultr"r"r#rzscCsRd|kr,|d|d}|dkr6|dfSn
|d}|d|||ddfS)N/r{rrr8)findrfind)rtir"r"r#r}s

r}cCsHt|}dD]"}|||}|dkrt||}q|||||dfS)Nz/?#r)lenrmin)rtstartdelimcZwdelimr"r"r#_splitnetlocsrcCs|r|rdSddl}|dd}|dd}|dd}|dd}|d|}||kr`dSdD] }||krdtd	|d
dqddS)Nrr\rr]rq?ZNFKCz/?#@:znetloc 'z' contains invalid z#characters under NFKC normalization)isasciiunicodedatareplaceZ	normalizerW)r_rnZnetloc2rr"r"r#_checknetlocsrcCsr|dd}|d\}}}|rV|r.td|d\}}}|rf|dsftdn|d\}}}t|dS)Nr\rcInvalid IPv6 URLrdr])r`rQrW
startswith_check_bracketed_host)r_Zhostname_and_portZbefore_bracketrgrhrSrfrXr"r"r#_check_bracketed_netlocs
rcCsB|dr td|s>tdnt|}t|tjr>tddS)Nvz\Av[a-fA-F0-9]+\..+\ZzIPvFuture address is invalidz%An IPv4 address cannot be in brackets)rrematchrW	ipaddressZ
ip_addressr9ZIPv4Address)rSZipr"r"r#rs


rcCstD]}||d}q|S)Nr)_UNSAFE_URL_BYTES_TO_REMOVEr)rtbr"r"r#_remove_unsafe_bytes_from_urlsrc
Cst||\}}}t|}t|}|t}|t}t|}|||t|t|f}t|d}|rj||St	tt
kr|td}}}|d}	|	dkr|d|	dkr||	dd}|dddkr(t
|d\}}d|krd	|ksd	|krd|krtd
d|kr(d	|kr(t||rHd|krH|dd\}}d|krb|dd\}}t|td||||}
|
t|<||
S|d|	D]}|tkrqq||	dd}|rtd
d|Dr|d|	|}}|dddkrZt
|d\}}d|kr"d	|ks6d	|kr>d|kr>td
d|krZd	|krZt||rzd|krz|dd\}}d|kr|dd\}}t|t|||||}
|
t|<||
S)Nrr]rrr8r//rcrdrrqrcss|]}|dkVqdS)
0123456789Nr"r1rr"r"r#r4szurlsplit.<locals>.<genexpr>)r=rlstrip_WHATWG_C0_CONTROL_OR_SPACEstripbooltypergetrMAX_CACHE_SIZEr$rrrWrsplitrrscheme_charsanyrR)
rtr~rrkeycachedr_rrsrrrrestr"r"r#rsv







cCs<t|\}}}}}}}|r&d||f}|t|||||fS)Nz%s;%s)r=r)
componentsr~r_rtrrrsrr"r"r#rs
cCst|\}}}}}}|s4|r$|tks4|dddkr`|rP|dddkrPd|}d|pXd|}|rp|d|}|r|d|}|r|d|}||S)	Nrrr8rrr]rrq)r=uses_netloc)rr~r_rtrrsrr"r"r#rs c	Cs|s|S|s|St||\}}}t|d|\}}}}}}	t|||\}
}}}
}}|
|ks`|
tkrh||S|
tkr|r|t|
|||
||fS|}|s|
s|}|}
|s|}|t|
|||
||fS|d}|ddkr|d=|dddkr|d}n(||d}td|dd|dd<g}|D]P}|dkr\z|Wntk
rXYnXn|dkrlq(n
|	|q(|ddkr|	d|t|
|d
|pd|
||fS)Nrrr8...)rr)r=r
uses_relativerrrfilterpop
IndexErrorappendjoin)basertrrZbschemeZbnetlocZbpathZbparamsZbqueryZ	bfragmentr~r_pathrrrsZ
base_partsZsegmentsZ
resolved_pathZsegr"r"r#r.sp







c	CsTt|\}}d|kr>t|\}}}}}}t|||||df}nd}|}|t||S)Nrqr)r=rrr)	rtrsrpaqZfragZdefragr"r"r#rssZ0123456789ABCDEFabcdefc	Cs|s|jdSt|tr"|d}|d}t|dkr<|S|dg}|j}tdkrbddtDa|ddD]R}z(|t|dd||ddWqntk
r|d||YqnXqnd	|S)	Nutf-8rOr8rcSs.i|]&}tD]}||t||qqSr")_hexdigr*bytesfromhex)r1rrr"r"r#
<dictcomp>s

z$unquote_to_bytes.<locals>.<dictcomp>r)
rr9r:r*rr
_hextobyterKeyErrorr)stringbitsresritemr"r"r#rs,



z([-]+)rrcCst|trtdd|kr$|j|S|dkr0d}|dkr<d}t|}|dg}|j}tdt|dD],}|t||	|||||dqfd
|S)	NzExpected str, got bytesrNrrrr8rr)r9rr;r_asciirerrangerrr/r)rr+r,rrrrr"r"r#rs 



F&c	CsNi}t|||||||d}|D]*\}	}
|	|kr>||	|
q|
g||	<q|S)N)r+r,max_num_fieldsrT)r
r)qskeep_blank_valuesstrict_parsingr+r,rrTZ
parsed_resultpairsnamevaluer"r"r#r	scCs.t|\}}t|\}}|r*t|ttfs2td|dk	rXd||}	||	krXtddd||D}
g}|
D]}|s|sqt|dd}
t|
dkr|rtd|f|rt|
d	nqtt|
ds|rt|
d
	dd}t
|||d
}||}|
d	dd}t
|||d
}||}|||fqt|S)Nz*Separator must be of type string or bytes.r8zMax number of fields exceededcSsg|]}|qSr"r")r1s1r"r"r#
<listcomp>szparse_qsl.<locals>.<listcomp>=rzbad query field: %rrr+ r3)r=r9r:rrWcountrrrrr)rrrr+r,rrTrrf
num_fieldsrrZ
name_valueZnvrrr"r"r#r
s:cCs|dd}t|||S)Nrr)rr)rr+r,r"r"r#r/ssBABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_.-~c@s$eZdZddZddZddZdS)QuotercCst||_dSr)_ALWAYS_SAFEunionsafe)rArr"r"r#__init__GszQuoter.__init__cCsd|jjt|fS)Nz<%s %r>)	__class__rBdictrKr"r"r#__repr__KszQuoter.__repr__cCs(||jkrt|nd|}|||<|S)Nz%{:02X})rchrformat)rArrr"r"r#__missing__OszQuoter.__missing__N)rBrCrDrrrr"r"r"r#r?srrcCsbt|tr8|s|S|dkrd}|dkr*d}|||}n |dk	rHtd|dk	rXtdt||S)Nrr&z,quote() doesn't support 'encoding' for bytesz*quote() doesn't support 'errors' for bytes)r9r:r*r;r
)rrr+r,r"r"r#rUs'
cCsdt|trd|ks$t|tr2d|kr2t||||St|trBd}nd}t|||||}|ddS)Nr r)r9r:rrr)rrr+r,Zspacer"r"r#rs
cst|ttfstd|sdSt|tr6|dd}ntdd|D}|t|s^|Szt	|Wn&t
k
rt|jt	|<YnXd
fdd|DS)Nz!quote_from_bytes() expected bytesrr%ignorecSsg|]}|dkr|qS)r"rr"r"r#rsz$quote_from_bytes.<locals>.<listcomp>csg|]}|qSr"r")r1charZquoterr"r#rs)r9r	bytearrayr;r:r*rstrip_ALWAYS_SAFE_BYTESr/r!rr__getitem__r)Zbsrr"rr#r
s
c	Cst|dr|}nPzt|r0t|dts0tWn0tk
rbt\}}}td|YnXg}	|s|D]j\}
}t|
t	r||
|}
n|t
|
|||}
t|t	r|||}n|t
||||}|	|
d|qpn"|D]\}
}t|
t	r||
|}
n|t
|
|||}
t|t	rB|||}|	|
d|qt|t
rp|||||}|	|
d|qzt|}Wn:tk
r|t
||||}|	|
d|YqX|D]B}
t|
t	r||
|}
n|t
|
|||}
|	|
d|
qqd|	S)Nitemsrz1not a valid non-string sequence or mapping objectrr)
hasattrrrr9r5r;sysexc_infowith_tracebackrr:rr)rZdoseqrr+r,Z	quote_viaZtyZvatblkrr2Zeltr"r"r#rsR





cCstjdtddt|S)Nz/urllib.parse.to_bytes() is deprecated as of 3.8r
stacklevel)warningswarnDeprecationWarning	_to_bytesrtr"r"r#to_bytess
rcCsJt|trFz|d}Wn(tk
rDtdt|dYnX|S)NASCIIzURL z contains non-ASCII characters)r9r:r*r/UnicodeErrorreprrr"r"r#r	s
rcCs`t|}|dddkr<|dddkr<|dd}|dddkr\|dd}|S)Nr8<r>zURL:)r:rrr"r"r#unwraps r	cCstjdtddt|S)NzUurllib.parse.splittype() is deprecated as of 3.8, use urllib.parse.urlparse() insteadrr)rrr
_splittyperr"r"r#	splittype$s
rcCsDtdkrtdtjat|}|r<|\}}||fSd|fS)Nz
([^/:]+):(.*))	_typeprogrcompileDOTALLrgroupsrR)rtrr~datar"r"r#r
,s
r
cCstjdtddt|S)NzUurllib.parse.splithost() is deprecated as of 3.8, use urllib.parse.urlparse() insteadrr)rrr
_splithostrr"r"r#	splithost9s
rcCsXtdkrtdtjat|}|rP|\}}|rH|ddkrHd|}||fSd|fS)Nz//([^/#?]*)(.*)rr)	_hostprogrr
rrr)rtrZ	host_portrr"r"r#rAs
rcCstjdtddt|S)NzUurllib.parse.splituser() is deprecated as of 3.8, use urllib.parse.urlparse() insteadrr)rrr
_splituserhostr"r"r#	splituserPs
rcCs |d\}}}|r|nd|fS)Nr\r`)ruserrr"r"r#rWsrcCstjdtddt|S)NzWurllib.parse.splitpasswd() is deprecated as of 3.8, use urllib.parse.urlparse() insteadrr)rrr_splitpasswd)rr"r"r#splitpasswd]s
rcCs |d\}}}||r|ndfSNr]rQ)rrZpasswdr"r"r#rdsrcCstjdtddt|S)NzUurllib.parse.splitport() is deprecated as of 3.8, use urllib.parse.urlparse() insteadrr)rrr
_splitportrr"r"r#	splitportjs
rcCsDtdkrtdtjat|}|r<|\}}|r<||fS|dfS)Nz
(.*):([0-9]*))	_portprogrr
r	fullmatchr)rrrXr"r"r#rss
rrcCstjdtddt||S)NzVurllib.parse.splitnport() is deprecated as of 3.8, use urllib.parse.urlparse() insteadrr)rrr_splitnport)rdefportr"r"r#
splitnports
r$cCsT|d\}}}|s|}n2|rLzt|}Wntk
rBd}YnX||fS||fSr)r`rVrW)rr#rrXZnportr"r"r#r"s
r"cCstjdtddt|S)NzVurllib.parse.splitquery() is deprecated as of 3.8, use urllib.parse.urlparse() insteadrr)rrr_splitqueryrr"r"r#
splitquerys
r&cCs$|d\}}}|r||fS|dfS)Nrr)rtrrrr"r"r#r%sr%cCstjdtddt|S)NzTurllib.parse.splittag() is deprecated as of 3.8, use urllib.parse.urlparse() insteadrr)rrr	_splittagrr"r"r#splittags
r(cCs$|d\}}}|r||fS|dfSrpr)rtrrtagr"r"r#r'sr'cCstjdtddt|S)NzUurllib.parse.splitattr() is deprecated as of 3.8, use urllib.parse.urlparse() insteadrr)rrr
_splitattrrr"r"r#	splitattrs
r+cCs|d}|d|ddfS)Nr{rr8)r)rtZwordsr"r"r#r*s
r*cCstjdtddt|S)NzWurllib.parse.splitvalue() is deprecated as of 3.8, use urllib.parse.parse_qsl() insteadrr)rrr_splitvalue)attrr"r"r#
splitvalues
r.cCs |d\}}}||r|ndfS)Nrr)r-rrr"r"r#r,sr,)rT)r)rT)T)rr)FFrrNr)FFrrNr)rr)rNN)rNN)r)r)r)lrrcollectionsrr__all__rrr|Znon_hierarchicalZ
uses_queryZ
uses_fragmentrrrrrr$Z_implicit_encodingZ_implicit_errorsr(r-r7r=objectr>rFrHr[rjroZ_DefragResultBaseZ_SplitResultBaseZ_ParseResultBase__doc__rtrsr~r_rrrZ
ResultBaserrrrrrrzrr}rrrrrrrrrrrrrr
rrr	r
r	frozensetrrrr!defaultdictrrrr
rrrr	rrr
rrrrrrrrr rr$r"r&r%r(r'r+r*r.r,r"r"r"r#<module>"s


%


	
	
B
E


*
C
	
6


Q