usr/lib/python2.7/site-packages/pip/_vendor/idna/core.pyc000064400000026775147205610530017243 0ustar00 abc@sddlmZddlZddlZddlZddlZddlmZdZdZ ej dZ ej dd kre ZeZnd efd YZd efd YZdefdYZdefdYZdZdZdZdZdZdZedZdZdZdZ dZ!edZ"dZ#dZ$d Z%e&ed!Z'eeeed"Z(eeed#Z)dS($i(tidnadataiN(tintranges_containi sxn--u [.。.。]iit IDNAErrorcBseZdZRS(s7 Base exception for all IDNA-encoding related problems (t__name__t __module__t__doc__(((s9/usr/lib/python2.7/site-packages/pip/_vendor/idna/core.pyRst IDNABidiErrorcBseZdZRS(s= Exception when bidirectional requirements are not satisfied (RRR(((s9/usr/lib/python2.7/site-packages/pip/_vendor/idna/core.pyRstInvalidCodepointcBseZdZRS(s> Exception when a disallowed or unallocated codepoint is used (RRR(((s9/usr/lib/python2.7/site-packages/pip/_vendor/idna/core.pyRstInvalidCodepointContextcBseZdZRS(sE Exception when the codepoint is not valid in the context it is used (RRR(((s9/usr/lib/python2.7/site-packages/pip/_vendor/idna/core.pyRscCstjt|S(N(t unicodedatat combiningtunichr(tcp((s9/usr/lib/python2.7/site-packages/pip/_vendor/idna/core.pyt_combining_class$scCstt|tj|S(N(RtordRtscripts(R tscript((s9/usr/lib/python2.7/site-packages/pip/_vendor/idna/core.pyt _is_script'scCs |jdS(Ntpunycode(tencode(ts((s9/usr/lib/python2.7/site-packages/pip/_vendor/idna/core.pyt _punycode*scCs dj|S(Ns U+{0:04X}(tformat(R((s9/usr/lib/python2.7/site-packages/pip/_vendor/idna/core.pyt_unot-scCst|dkrtStS(Ni?(tlentFalsetTrue(tlabel((s9/usr/lib/python2.7/site-packages/pip/_vendor/idna/core.pytvalid_label_length1scCs&t||rdndkr"tStS(Nii(RRR(Rt trailing_dot((s9/usr/lib/python2.7/site-packages/pip/_vendor/idna/core.pytvalid_string_length8sc Cst}xot|dD]^\}}tj|}|dkr^tdjt||n|dkrt}PqqW| r| rtStj|d}|dkrt}n0|dkrt}ntd jt|t}t}x t|dD]\}}tj|}|r|dkrCtdj|n|dkrXt}n|dkrmt}n|dkr|s|}q||krtdqqq|dkrtdj|n|dkrt}q|dkrt}qqW|stdntS(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(R R!R"(R R!( R R!R"R$R%R&R'R(R)R*(R R!R$R"(R"R$(R#R$R%R&R'R(R)R*(R#R$(Rt enumerateR t bidirectionalRRtreprR( Rt check_ltrt bidi_labeltidxR t directiontrtlt valid_endingt number_type((s9/usr/lib/python2.7/site-packages/pip/_vendor/idna/core.pyt check_bidi?sR !                  cCs0tj|dddkr,tdntS(NitMs0Label begins with an illegal combining character(R tcategoryRR(R((s9/usr/lib/python2.7/site-packages/pip/_vendor/idna/core.pytcheck_initial_combiner|scCsU|dd!dkr"tdn|ddksB|ddkrQtdntS( Niis--s4Label has disallowed hyphens in 3rd and 4th positionit-is)Label must not start or end with a hyphen(RR(R((s9/usr/lib/python2.7/site-packages/pip/_vendor/idna/core.pytcheck_hyphen_oks  cCs+tjd||kr'tdndS(NtNFCs%Label must be in Normalization Form C(R t normalizeR(R((s9/usr/lib/python2.7/site-packages/pip/_vendor/idna/core.pyt check_nfcscCst||}|dkrf|dkrOtt||dtkrOtSnt}xzt|dddD]b}tjjt||}|tdkrqln|tdtdgkrlt}PqlqlW|stSt}x}t|dt |D]b}tjjt||}|tdkr6qn|tdtdgkrt}PqqW|S|d kr|dkrtt||dtkrtSntStSdS( Ni iiitTR#tDR i ( RR t_virama_combining_classRRtrangeRt joining_typestgetR(Rtpostcp_valuetoktit joining_type((s9/usr/lib/python2.7/site-packages/pip/_vendor/idna/core.pytvalid_contextjs<       cCs!t||}|dkrd|ko=t|dknr}t||ddkr}t||ddkr}tSntS|dkr|t|dkrt|dkrt||ddStS|dks|dkr |dkrt||dd StS|d kroxQ|D]I}|d kr6qnt|d sct|d sct|drtSqWtSd|kodknrx4|D],}dt|kodknrtSqWtSd|kodknrx4|D],}dt|ko dknrtSqWtSdS(NiiiiliutGreekiitHebrewi0u・tHiraganatKatakanatHani`iiii(RRRRR(RRDt exceptionRER ((s9/usr/lib/python2.7/site-packages/pip/_vendor/idna/core.pytvalid_contextos> &4 (    - " "cCst|ttfr'|jd}nt|dkrHtdnt|t|t|xt |D] \}}t |}t |t j drqsqst |t j drt||s~tdjt||dt|q~qst |t j drSt||s~td jt||dt|q~qstd jt||dt|qsWt|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=R:R8R+RRRtcodepoint_classesRIRRRR-RPRR5(RRDR RE((s9/usr/lib/python2.7/site-packages/pip/_vendor/idna/core.pyt check_labels&    11/cCsyi|jd}yt|Wn&tk rHtdj|nXt|sdtdn|SWntk r|nX|stdnt|}t|t|}t |}t|stdn|S(Ntasciis$The label {0} is not a valid A-labelsLabel too longsNo Input( RtulabelRRRtUnicodeEncodeErrortunicodeRYRt_alabel_prefix(R((s9/usr/lib/python2.7/site-packages/pip/_vendor/idna/core.pytalabels(        cCst|ttfsJy|jd}WqJtk rFt||SXn|j}|jtrx|t t}nt||j dS|j d}t||S(NRZR( RTRURVRR\RYtlowert startswithR^RRW(R((s9/usr/lib/python2.7/site-packages/pip/_vendor/idna/core.pyR[s      c Csddlm}d}yFx/t|D]!\}}t|}||dkrS|ntj||dfd}|d} t|dkr|dnd} | dks| d kr| s| d kr|r| dkr||7}q&| dk r/| d ks"| d kr|s"| d kr/|r/|| 7}q&| d kr&tq&q&Wtj d |SWn<tk rt dj t ||dt |nXdS(sBRe-map the characters in the string according to UTS46 processing.i(t uts46datauitZiitVR?t3R6tIR;s0Codepoint {0} not allowed at position {1} in {2}N(RbR+Rtbisectt bisect_leftRtNonet IndexErrorR R<RRRR-( tdomaint std3_rulest transitionalRbtoutputRDtchart code_pointtuts46rowtstatust replacement((s9/usr/lib/python2.7/site-packages/pip/_vendor/idna/core.pyt uts46_remap3s0  "     c Cs4t|ttfr'|jd}n|rBt|||}nt}g}|rf|jd}ntj|}x|r|d r|d=qxW|stdn|ddkr|d=t }nx!|D]}|j t |qW|r|j dndj |}t ||s0tdn|S(NRZt.is Empty domainiRsDomain too long(RTRURVRWRtRtsplitt_unicode_dots_reRRtappendR_tjoinR( Rtstricttuts46RlRmRtresulttlabelsR((s9/usr/lib/python2.7/site-packages/pip/_vendor/idna/core.pyROs0   cCs t|ttfr'|jd}n|rBt||t}nt}g}|sftj|}n|jd}x|r|d r|d=qxW|stdn|ds|d=t }nx!|D]}|j t |qW|r|j dndj |S(NRZu.is Empty domainiu( RTRURVRWRtRRwRvRRRxR[Ry(RRzR{RlRR|R}R((s9/usr/lib/python2.7/site-packages/pip/_vendor/idna/core.pyRWls*    (*RRRgR tretsyst intrangesRR@R^tcompileRwt version_infotstrR]tchrR t UnicodeErrorRRRRR RRRRRRR5R8R:R=RIRPRYR_R[RRtRRW(((s9/usr/lib/python2.7/site-packages/pip/_vendor/idna/core.pytsB            =   , )   usr/lib/python2.7/site-packages/pip/_vendor/certifi/core.pyc000064400000002514147205635070017744 0ustar00 abc@sadZddlZddlZdefdYZdZdZedkr]eGHndS(sU certifi.py ~~~~~~~~~~ This module returns the installation location of cacert.pem. iNtDeprecatedBundleWarningcBseZdZRS(s The weak security bundle is being deprecated. Please bother your service provider to get them to stop using cross-signed roots. (t__name__t __module__t__doc__(((s</usr/lib/python2.7/site-packages/pip/_vendor/certifi/core.pyRscCsdS(Ns /etc/pki/tls/certs/ca-bundle.crt((((s</usr/lib/python2.7/site-packages/pip/_vendor/certifi/core.pytwherescCstjdttS(NsThe weak security bundle has been removed. certifi.old_where() is now an alias of certifi.where(). Please update your code to use certifi.where() instead. certifi.old_where() will be removed in 2018.(twarningstwarnRR(((s</usr/lib/python2.7/site-packages/pip/_vendor/certifi/core.pyt old_wherest__main__(RtosRtDeprecationWarningRRRR(((s</usr/lib/python2.7/site-packages/pip/_vendor/certifi/core.pyt s