KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/21572/root/usr/lib64/python2.4/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21572/root/usr/lib64/python2.4/urlparse.pyc
mò
‚=5Dc@sÌdZddddddgZddd	d
ddd
dddddddgZddd	d
dddd
dddddddddddgZd	ddddddddg	ZddddddddddddgZddddddd	ddddgZdddd	dd
ddddd
ddg
ZdZdZ	ha
d „Zdd!d"„Zd#„Z
d$d%„Zdd!d&„Zd'„Zd(„Zd!d)„Zd*„Zd+Zd,„Zed-joeƒnd.S(/sParse (absolute and relative) URLs.

See RFC 1808: "Relative Uniform Resource Locators", by R. Fielding,
UC Irvine, June 1995.
turlparset
urlunparseturljoint	urldefragturlsplitt
urlunsplittftpthttptgophertnntptimaptwaistfilethttpstshttptmmstprosperotrtsptrtsputttelnettsnewstrsynctsvnssvn+sshthdltmailtotnewstsipsAabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+-.icCs
hadS(sClear the parse cache.N(t_parse_cache(((t /usr/lib64/python2.4/urlparse.pytclear_cache&sicCsst|||ƒ}|\}}}}}|tjo#d|jot	|ƒ\}}nd}||||||fS(s#Parse a URL into 6 components:
    <scheme>://<netloc>/<path>;<params>?<query>#<fragment>
    Return a 6-tuple: (scheme, netloc, path, params, query, fragment).
    Note that we don't break the components up in smaller bits
    (e.g. netloc is a single string) and we don't expand % escapes.t;RN(Rturltschemetallow_fragmentsttupletnetloctquerytfragmenttuses_paramst_splitparamstparams(R R!R"R#R$R&R)R%((RR,scCsld|jo:|id|idƒƒ}|djo|dfSqVn|idƒ}|| ||dfS(Nt/RiRi(R tfindtrfindti(R R-((RR(:s

icCsVx>dD]*}|i||ƒ}|djoPqqWt|ƒ}|||!||fS(Ns/?#i(tcR R+tstarttdelimtlen(R R/R.R0((Rt_splitnetlocCs
	cCsh|||f}	ti|	d
ƒ}|o|Snttƒt	jot
ƒnd}}
}|idƒ}|djo#|| djoÈ|| iƒ}||d}|d djot|dƒ\}}n|o)d|jo|iddƒ\}}nd	|jo|id	dƒ\}}
n||||
|f}|t|	<|SnxG|| D]}|tjoPq\q\W|| iƒ||d}}n|tjo*|d djot|dƒ\}}n|o6|tjo)d|jo|iddƒ\}}n|tjo)d	|jo|id	dƒ\}}
n||||
|f}|t|	<|S(sParse a URL into 5 components:
    <scheme>://<netloc>/<path>?<query>#<fragment>
    Return a 5-tuple: (scheme, netloc, path, query, fragment).
    Note that we don't break the components up in smaller bits
    (e.g. netloc is a single string) and we don't expand % escapes.Rt:iRiis//t#t?N(R R!R"tkeyRtgettNonetcachedR1tMAX_CACHE_SIZERR$R%R&R+R-tlowerR2tsplitR#R.tscheme_charstuses_netloct
uses_fragmentt
uses_query(R R!R"R-R.R$R&R9R#R6R%((RRLsH



	#!
cCsL|\}}}}}}|od||f}nt|||||fƒS(súPut a parsed URL back together again.  This may result in a
    slightly different, but equivalent URL, if the URL that was parsed
    originally had redundant delimiters, e.g. a ? with an empty query
    (the draft states that these are equivalent).s%s;%sN(R!R$R R)R%R&R(t.0R!R$R R)R%R&((RRvscCsÏ|\}}}}}|p%|o]|tjoP|d djo?|o|d djod|}nd|pd|}n|o|d|}n|o|d|}n|o|d|}n|S(	Nis//iR*RR3R5R4(R!R$R R%R&R>(RAR!R$R R%R&((RRs,cCsƒ|p|Sn|p|Snt|d|ƒ\}	}}}}}t||	|ƒ\}
}}}}}|
|	jp
|
tjo|Sn|
tjo1|o t|
|||||fƒSn|}n|d djo t|
|||||fƒSn|p|p|p t|
|||||fƒSn|idƒd |idƒ}|ddjod|d<nxd|jo|idƒqnWxxd}
t|ƒd}xZ|
|joK||
djo,||
dd
jo||
d|
d5Pn|
d}
q©WPqW|ddgjod|d<n6t|ƒdjo"|ddjodg|d)nt|
|di|ƒ|||fƒS(saJoin a base URL and a possibly relative URL to form an absolute
    interpretation of the latter.RiR*iÿÿÿÿt.s..iiþÿÿÿN(Rs..(tbaseR RR"tbschemetbnetloctbpathtbparamstbqueryt	bfragmentR!R$tpathR)R%R&t
uses_relativeR>RR<tsegmentstremoveR-R1tntjoin(RCR R"RGRJR%RERLR)RDR!R&R$R-RNRHRFRI((RR‹sN$$
 
   

&$cCsed|joJt|ƒ\}}}}}}t|||||dfƒ}||fSn|dfSdS(s¿Removes any existing fragment from URL.

    Returns a tuple of the defragmented URL and the fragment.  If
    the URL contained no fragments, the second element is the
    empty string.
    R4RN(
R RtsRNtptatqtfragRtdefrag(R RRRTRURNRSRQRP((RR»s
s™
      http://a/b/c/d

      g:h        = <URL:g:h>
      http:g     = <URL:http://a/b/c/g>
      http:      = <URL:http://a/b/c/d>
      g          = <URL:http://a/b/c/g>
      ./g        = <URL:http://a/b/c/g>
      g/         = <URL:http://a/b/c/g/>
      /g         = <URL:http://a/g>
      //g        = <URL:http://g>
      ?y         = <URL:http://a/b/c/d?y>
      g?y        = <URL:http://a/b/c/g?y>
      g?y/./x    = <URL:http://a/b/c/g?y/./x>
      .          = <URL:http://a/b/c/>
      ./         = <URL:http://a/b/c/>
      ..         = <URL:http://a/b/>
      ../        = <URL:http://a/b/>
      ../g       = <URL:http://a/b/g>
      ../..      = <URL:http://a/>
      ../../g    = <URL:http://a/g>
      ../../../g = <URL:http://a/../g>
      ./../g     = <URL:http://a/b/g>
      ./g/.      = <URL:http://a/b/c/g/>
      /./g       = <URL:http://a/./g>
      g/./h      = <URL:http://a/b/c/g/h>
      g/../h     = <URL:http://a/b/c/h>
      http:g     = <URL:http://a/b/c/g>
      http:      = <URL:http://a/b/c/d>
      http:?y         = <URL:http://a/b/c/d?y>
      http:g?y        = <URL:http://a/b/c/g?y>
      http:g?y/./x    = <URL:http://a/b/c/g?y/./x>
cCsVdk}d}|ido7|id}
|
djo
|i}qlt|
ƒ}ndk}|itƒ}xã|i	ƒ}	|	pPn|	iƒ}|pqon|d}t|ƒ}d||fGHt||ƒ}|p
|}nd|}d||fGHt|ƒdjo;|dd	jo*||d
jodG|d
GdGHqMqoqoWdS(
NRit-is
%-10s : %ss<URL:%s>s
%-10s = %sit=itEXPECTEDs
!!!!!!!!!!(tsysRCtargvtfntstdintfptopentStringIOt
test_inputtreadlinetlineR<twordsR RtpartsRtabstwrappedR1(R]ReR_R RdRYRCRcRfRbR[((Rttestìs8	


	


$t__main__N(t__doc__t__all__RKR>tnon_hierarchicalR'R@R?R=R:RRRR(R2RRRRRR`Rgt__name__(R'RR(RRRRjRR@RgRKRR2R>RkR:R`RR?R=((RR5s.0?!*'-				*			0	"	


Anon7 - 2021