/usr/lib/python2.6/site-packages/idna
NameSizeModeActions
codec.py33030644editdlrm
codec.pyc38130644editdlrm
compat.py2400644editdlrm
compat.pyc7490644editdlrm
core.py112430644editdlrm
core.pyc114600644editdlrm
idnadata.py907540644editdlrm
idnadata.pyc619740644editdlrm
uts46data.py1812240644editdlrm
uts46data.pyc1614100644editdlrm
__init__.py200644editdlrm
__init__.pyc1650644editdlrm
Edit: /usr/lib/python2.6/site-packages/idna/core.pyc (11460B)
Ñò ›KVc @sžddklZddkZddkZddkZddkZdZdZeidƒZ ei ddjoe Z e Znd efd „ƒYZd efd „ƒYZd efd„ƒYZdefd„ƒYZd„Zd„Zd„Zd„Zd„Zd„Zed„Zd„Zd„Zd„Zd„Zed„Z d„Z!d„Z"d„Z#e$ed „Z%eeeed!„Z&eeed"„Z'dS(#i(tidnadataiÿÿÿÿNi sxn--u [.。.。]iit IDNAErrorcBseZdZRS(s7 Base exception for all IDNA-encoding related problems (t__name__t __module__t__doc__(((s'/tmp/pip-build-0vAPNS/idna/idna/core.pyRst IDNABidiErrorcBseZdZRS(s= Exception when bidirectional requirements are not satisfied (RRR(((s'/tmp/pip-build-0vAPNS/idna/idna/core.pyRstInvalidCodepointcBseZdZRS(s> Exception when a disallowed or unallocated codepoint is used (RRR(((s'/tmp/pip-build-0vAPNS/idna/idna/core.pyRstInvalidCodepointContextcBseZdZRS(sE Exception when the codepoint is not valid in the context it is used (RRR(((s'/tmp/pip-build-0vAPNS/idna/idna/core.pyRscCstit|ƒƒS(N(t unicodedatat combiningtunichr(tcp((s'/tmp/pip-build-0vAPNS/idna/idna/core.pyt_combining_class#scCst|ƒti|jS(N(tordRtscripts(R tscript((s'/tmp/pip-build-0vAPNS/idna/idna/core.pyt _is_script&scCs |idƒS(Ntpunycode(tencode(ts((s'/tmp/pip-build-0vAPNS/idna/idna/core.pyt _punycode)scCs di|ƒS(Ns U+{0:04X}(tformat(R((s'/tmp/pip-build-0vAPNS/idna/idna/core.pyt_unot,scCst|ƒdjotStS(Ni?(tlentFalsetTrue(tlabel((s'/tmp/pip-build-0vAPNS/idna/idna/core.pytvalid_label_length0scCs*t|ƒ|odndjotStS(Niþiý(RRR(Rt trailing_dot((s'/tmp/pip-build-0vAPNS/idna/idna/core.pytvalid_string_length7s!c Cs5t}xst|dƒD]b\}}ti|ƒ}|djo"tdit|ƒ|ƒƒ‚n|djo t}PqqW| o | otSti|dƒ}|djo t}n3|djo t}ntd it|ƒƒƒ‚t}t}xt|dƒD] \}}ti|ƒ}|o—|djotdi|ƒƒ‚n|djo t}n|djo t}n|djo2|p |}q¾||jotdƒ‚q¾qq |djotdi|ƒƒ‚n|djo t}q |djo t}q q W|ptdƒ‚ntS(Nits3Unknown directionality in label {0} at position {1}tRtALtANitLs>First codepoint in label {0} must be directionality L, R or ALtENtEStCStETtONtBNtNSMsHInvalid direction for codepoint at position {0} in a right-to-left labels2Can not mix numeral types in a right-to-left labelsHInvalid direction for codepoint at position {0} in a left-to-right labels0Label ends with illegal codepoint directionality(RsALR!(RsAL( RsALR!R#R$R%sETR'R(R)(RsALR#R!(R!R#(R"R#R$R%sETR'R(R)(R"R#(Rt enumerateRt bidirectionalRRtreprR( Rt check_ltrt bidi_labeltidxR t directiontrtlt valid_endingt number_type((s'/tmp/pip-build-0vAPNS/idna/idna/core.pyt check_bidi>sV  "                   cCs2ti|dƒddjotdƒ‚ntS(NitMs0Label begins with an illegal combining character(RtcategoryRR(R((s'/tmp/pip-build-0vAPNS/idna/idna/core.pytcheck_initial_combiner{scCsZ|dd!djotdƒ‚n|ddjp|ddjotdƒ‚ntS( Niis--s4Label has disallowed hyphens in 3rd and 4th positionit-iÿÿÿÿs)Label must not start or end with a hyphen(RR(R((s'/tmp/pip-build-0vAPNS/idna/idna/core.pytcheck_hyphen_ok‚s "cCs-tid|ƒ|jotdƒ‚ndS(NtNFCs%Label must be in Normalization Form C(Rt normalizeR(R((s'/tmp/pip-build-0vAPNS/idna/idna/core.pyt check_nfc‹sc Cs—t||ƒ}|djo)|djo*tt||dƒƒtjotSnt}xft|dddƒD]N}tiit||ƒƒ}|djoqqn|d jo t}PqqqqW|ptSt}xit|dt |ƒƒD]N}tiit||ƒƒ}|djoqïn|d jo t}PqïqïW|S|d jo<|djo*tt||dƒƒtjotSntStSdS( Ni iiiÿÿÿÿtTR"tDRi (R"R>(RR>( R R t_virama_combining_classRRtrangeRt joining_typestgetR(Rtpostcp_valuetoktit joining_type((s'/tmp/pip-build-0vAPNS/idna/idna/core.pytvalid_contextj‘s@  !         ! cCsJt||ƒ}|djold|jot|ƒdjno?t||dƒdjo t||dƒdjotSntS|djoE|t|ƒdjo)t|ƒdjot||ddƒStS|djp |djo(|djot||dd ƒStS|d jobxZ|D]R}|d joq1nt|d ƒ o't|d ƒ ot|dƒ otSq1WtSd|jo djno?x7|D]/}dt|ƒjo djnotSq±WtSd|jo djno?x7|D]/}dt|ƒjo djnotSqWtSdS(Ni·iiiliutGreekióiôtHebrewiû0u・tHiraganatKatakanatHani`iiiðiù(R RRRR(RRCt exceptionRDR ((s'/tmp/pip-build-0vAPNS/idna/idna/core.pytvalid_contexto½sD (6  *   3 $ $ cCs•t|ttfƒo|idƒ}nt|ƒdjotdƒ‚nt|ƒt|ƒt|ƒxt |ƒD] \}}t |ƒ}|t i djoqwqw|t i djoCt ||ƒp/tdit|ƒ|dt|ƒƒƒ‚qƒqw|t i djoCt||ƒp/td it|ƒ|dt|ƒƒƒ‚qƒqwtd it|ƒ|dt|ƒƒƒ‚qwWt|ƒdS( Nsutf-8is Empty LabeltPVALIDtCONTEXTJs-Joiner {0} not allowed at position {1} in {2}itCONTEXTOs0Codepoint {0} not allowed at position {1} in {2}s0Codepoint {0} at position {1} of {2} not allowed(t isinstancetbytest bytearraytdecodeRRR<R9R7R*R Rtcodepoint_classesRHRRRR,RORR4(RRCR RD((s'/tmp/pip-build-0vAPNS/idna/idna/core.pyt check_labelæs(     33/cCsÛya|idƒ}yt|ƒWntdi|ƒƒ‚nXt|ƒptdƒ‚n|SWntj onX|ptdƒ‚nt|ƒ}t|ƒt|ƒ}t |}t|ƒptdƒ‚n|S(Ntasciis$The label {0} is not a valid A-labelsLabel too longsNo Input( RtulabelRRRt UnicodeErrortunicodeRXRt_alabel_prefix(R((s'/tmp/pip-build-0vAPNS/idna/idna/core.pytalabels(      cCs²t|ttfƒp8y|idƒ}WqNtj ot|ƒ|SXn|iƒ}|itƒo|t tƒ}nt|ƒ|i dƒS|i dƒ}t|ƒ|S(NRYR( RSRTRURR[RXtlowert startswithR]RRV(R((s'/tmp/pip-build-0vAPNS/idna/idna/core.pyRZs      c Csµddkl}d}yZxCt|ƒD]5\}}t|ƒ}||djo|nti||dfƒd}|d} t|ƒdjo |dnd} | djp6| d jo| p!| d jo"|o| djo||7}q&| dj oC| d jp(| d jo|p| d jo|o|| 7}q&| d jo tƒ‚q&q&Wti d |ƒSWn>tj o2t di t |ƒ|dt |ƒƒƒ‚nXdS(sBRe-map the characters in the string according to UTS46 processing.i(t uts46datauitZiitVR>t3R5tIR:s0Codepoint {0} not allowed at position {1} in {2}N(RaR*R tbisectt bisect_leftRtNonet IndexErrorRR;RRRR,( tdomaint std3_rulest transitionalRatoutputRCtchart code_pointtuts46rowtstatust replacement((s'/tmp/pip-build-0vAPNS/idna/idna/core.pyt uts46_remap2s2   $ ! c CsEt|ttfƒo|idƒ}n|ot|||ƒ}nt}g}|o|idƒ}nti|ƒ}x|o|d o |d=q~W|ptdƒ‚n|ddjo|d=t }nx!|D]}|i t |ƒƒqÝW|o|i dƒndi |ƒ}t ||ƒptdƒ‚n|S(NRYt.is Empty domainiÿÿÿÿRsDomain too long(RSRTRURVRsRtsplitt_unicode_dots_reRRtappendR^tjoinR( Rtstricttuts46RkRlRtresulttlabelsR((s'/tmp/pip-build-0vAPNS/idna/idna/core.pyRNs4  cCst|ttfƒo|idƒ}n|ot||tƒ}nt}g}|pti|ƒ}n|idƒ}x|o|d o |d=q~W|ptdƒ‚n|dp|d=t }nx!|D]}|i t |ƒƒq×W|o|i dƒndi |ƒS(NRYu.is Empty domainiÿÿÿÿu( RSRTRURVRsRRvRuRRRwRZRx(RRyRzRkRR{R|R((s'/tmp/pip-build-0vAPNS/idna/idna/core.pyRVks.   ((RRRfRtretsysR?R]tcompileRvt version_infotstrR\tchrR R[RRRRR RRRRRRR4R7R9R<RHRORXR^RZRRsRRV(((s'/tmp/pip-build-0vAPNS/idna/idna/core.pyts@            =   , )