config root man

Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/urlparse.pyo

³ò
h”Rc@s dZddddddgZddd	d
ddd
ddddddddgZddd	d
dddd
ddddddddddddgZd	dddddddddg
ZddddddddddddddgZddddddd	dddddgZdddd	dd
ddddd
ddg
Zd Zd!Z	ha
d"„Zd#efd$„ƒYZ
d%e
fd&„ƒYZd'e
fd(„ƒYZded)„Zd*„Zd+d,„Zded-„Zd.„Zd/„Zed0„Zd1„Zd2Zd3„Zed4joeƒnd5S(6sParse (absolute and relative) URLs.

See RFC 1808: "Relative Uniform Resource Locators", by R. Fielding,
UC Irvine, June 1995.
turlparset
urlunparseturljoint	urldefragturlsplitt
urlunsplittftpthttptgophertnntptimaptwaistfilethttpstshttptmmstprosperotrtsptrtsputtsftpttelnettsnewstrsynctsvnssvn+sshthdltmailtotnewstsiptsipssAabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+-.icCs
hadS(sClear the parse cache.N(t_parse_cache(((s$/usr/local/lib/python2.5/urlparse.pytclear_cache&st
BaseResultcBs›eZdZd
Zed„ƒZed„ƒZed„ƒZed„ƒZed„ƒZ	ed„ƒZ
ed„ƒZed„ƒZed	„ƒZ
RS(sBase class for the parsed result objects.

    This provides the attributes shared by the two derived result
    objects as read-only properties.  The derived classes are
    responsible for checking the right number of arguments were
    supplied to the constructor.

    cCs|dS(Ni((tself((s$/usr/local/lib/python2.5/urlparse.pytscheme:scCs|dS(Ni((R!((s$/usr/local/lib/python2.5/urlparse.pytnetloc>scCs|dS(Ni((R!((s$/usr/local/lib/python2.5/urlparse.pytpathBscCs|dS(Niþÿÿÿ((R!((s$/usr/local/lib/python2.5/urlparse.pytqueryFscCs|dS(Niÿÿÿÿ((R!((s$/usr/local/lib/python2.5/urlparse.pytfragmentJscCs_|i}d|joE|iddƒd}d|jo|iddƒd}n|SndS(Nt@iit:(R#tsplittNone(R!R#tuserinfo((s$/usr/local/lib/python2.5/urlparse.pytusernameQs	

cCsY|i}d|jo?|iddƒd}d|jo|iddƒdSqUndS(NR'iiR((R#R)R*(R!R#R+((s$/usr/local/lib/python2.5/urlparse.pytpassword[s	

cCsh|i}d|jo|iddƒd}nd|jo|iddƒd}n|iƒpdS(NR'iR(i(R#R)tlowerR*(R!R#((s$/usr/local/lib/python2.5/urlparse.pythostnameds	

cCsh|i}d|jo|iddƒd}nd|jo'|iddƒd}t|dƒSndS(NR'iR(i
(R#R)tintR*(R!R#tport((s$/usr/local/lib/python2.5/urlparse.pyR1ms	

((t__name__t
__module__t__doc__t	__slots__tpropertyR"R#R$R%R&R,R-R/R1(((s$/usr/local/lib/python2.5/urlparse.pyR ,s
		tSplitResultcBs eZdZd„Zd„ZRS(cCsti||||||fƒS(N(R t__new__(tclsR"R#R$R%R&((s$/usr/local/lib/python2.5/urlparse.pyR8|scCs
t|ƒS(N(R(R!((s$/usr/local/lib/python2.5/urlparse.pytgeturl€s((R2R3R5R8R:(((s$/usr/local/lib/python2.5/urlparse.pyR7xs	tParseResultcBs/eZdZd„Zed„ƒZd„ZRS(cCs"ti|||||||fƒS(N(R R8(R9R"R#R$tparamsR%R&((s$/usr/local/lib/python2.5/urlparse.pyR8ˆscCs|dS(Ni((R!((s$/usr/local/lib/python2.5/urlparse.pyR<ŒscCs
t|ƒS(N(R(R!((s$/usr/local/lib/python2.5/urlparse.pyR:s((R2R3R5R8R6R<R:(((s$/usr/local/lib/python2.5/urlparse.pyR;„s	cCsvt|||ƒ}|\}}}}}|tjo#d|jot|ƒ\}}nd}t||||||ƒS(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;R(Rtuses_paramst_splitparamsR;(turlR"tallow_fragmentsttupleR#R%R&R<((s$/usr/local/lib/python2.5/urlparse.pyR”scCsld|jo:|id|idƒƒ}|djo|dfSqVn|idƒ}|| ||dfS(Nt/R=iRi(tfindtrfind(R@ti((s$/usr/local/lib/python2.5/urlparse.pyR?¢s

icCsdt|ƒ}x@dD]8}|i||ƒ}|djot||ƒ}qqW|||!||fS(Ns/?#i(tlenRDtmin(R@tstarttdelimtctwdelim((s$/usr/local/lib/python2.5/urlparse.pyt_splitnetloc«s
cCsŒt|ƒ}|||t|ƒt|ƒf}ti|d
ƒ}|o|Snttƒtjotƒnd}}}|idƒ}|djo&|| djoË|| i	ƒ}||d}|d djot
|dƒ\}}n|o)d|jo|iddƒ\}}nd	|jo|id	dƒ\}}nt|||||ƒ}	|	t|<|	SnxG|| D]}
|
t
joPq}q}W|| i	ƒ||d}}n|tjo*|d djot
|dƒ\}}n|o6|tjo)d|jo|iddƒ\}}n|tjo)d	|jo|id	dƒ\}}nt|||||ƒ}	|	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.RR(iRiis//t#t?N(tboolttypeRtgetR*RGtMAX_CACHE_SIZERRDR.RMR)R7tscheme_charstuses_netloct
uses_fragmentt
uses_query(R@R"RAtkeytcachedR#R%R&RFtvRK((s$/usr/local/lib/python2.5/urlparse.pyR³sH!



	#!
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;%s(R(t.0R"R#R@R<R%R&((s$/usr/local/lib/python2.5/urlparse.pyRÞscCsÏ|\}}}}}|p%|o]|tjoP|d djo?|o|d djod|}nd|pd|}n|o|d|}n|o|d|}n|o|d|}n|S(	Nis//iRCRR(RORN(RU(R[R"R#R@R%R&((s$/usr/local/lib/python2.5/urlparse.pyRçs,c	Cs|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ƒqnWxvd}t|ƒd}xZ||joK||djo,||dd	jo||d|d5Pn|d}q©WPq|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.RiRCiÿÿÿÿt.s..iiþÿÿÿ(Rs..(Rt
uses_relativeRURR)tremoveRGtjoin(tbaseR@RAtbschemetbnetloctbpathtbparamstbqueryt	bfragmentR"R#R$R<R%R&tsegmentsRFtn((s$/usr/local/lib/python2.5/urlparse.pyRósT$$

 

$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.
    RNRN(RR(R@tsRhtptatqtfragtdefrag((s$/usr/local/lib/python2.5/urlparse.pyR#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>
c	Cs…ddk}d}|ido7|id}|djo
|i}qt|ƒ}nGyddkl}Wn#tj
oddkl}nX|tƒ}xá|iƒ}|pPn|i	ƒ}|pq n|d}t
|ƒ}d||fGHt||ƒ}	|p
|	}nd|	}
d	||
fGHt|ƒd
jo;|ddjo*|
|djod
G|dGdGHq~q q dS(NiÿÿÿÿRit-(tStringIOis
%-10s : %ss<URL:%s>s
%-10s = %sit=itEXPECTEDs
!!!!!!!!!!(
tsystargvtstdintopent	cStringIORptImportErrort
test_inputtreadlineR)RRRG(RsR`tfntfpRptlinetwordsR@tpartstabstwrapped((s$/usr/local/lib/python2.5/urlparse.pyttestTs<





$t__main__N(R4t__all__R]RUtnon_hierarchicalR>RWRVRTRSRRRBR R7R;tTrueRR?RMRRRRRRyR‚R2(((s$/usr/local/lib/python2.5/urlparse.pys<module>sL	L		+			0	/	!


Man Man