ó `8(Zc@sĢddlZddlZddlZddlZddlmZddlmZmZm Z d„Z d„Z d„Z d„Z d „Zd efd „ƒYZdS( iĸĸĸĸN(tCaseInsensitiveDicti(t HTTPResponsetpicklet text_typecCstj|ƒjdƒS(Ntascii(tbase64t b64encodetdecode(tb((s?/tmp/pip-build-0nEYGB/pip/pip/_vendor/cachecontrol/serialize.pyt_b64_encode_bytes scCst|jdƒƒS(Ntutf8(R tencode(ts((s?/tmp/pip-build-0nEYGB/pip/pip/_vendor/cachecontrol/serialize.pyt_b64_encode_strscCs#t|tƒrt|ƒSt|ƒS(N(t isinstanceRR R (R ((s?/tmp/pip-build-0nEYGB/pip/pip/_vendor/cachecontrol/serialize.pyt _b64_encodes cCstj|jdƒƒS(NR(Rt b64decodeR (R((s?/tmp/pip-build-0nEYGB/pip/pip/_vendor/cachecontrol/serialize.pyt_b64_decode_bytesscCst|ƒjdƒS(NR (RR(R ((s?/tmp/pip-build-0nEYGB/pip/pip/_vendor/cachecontrol/serialize.pyt_b64_decode_strst SerializercBsAeZdd„Zd„Zd„Zd„Zd„Zd„ZRS(c Csxt|jƒ}|dkrB|jdtƒ}tj|ƒ|_niit|ƒd6t d„|jj ƒDƒƒd6|j d6|j d6t |jƒd6|jd6|jd6d 6}i|d 9stheaderststatustversiontreasontstricttresponsetvaryt,css?|]5\}}t|ƒ|dk r0t|ƒn|fVqdS(N(RtNone(RRR((s?/tmp/pip-build-0nEYGB/pip/pip/_vendor/cachecontrol/serialize.pys Nsscc=2t separatorst:t sort_keysR (R R#(RRR!treadtFalsetiotBytesIOt_fpR tdicttitemsRRR RRRtsplittstriptgettjointzlibtcompresstjsontdumpstTrueR (tselftrequestRRtresponse_headerstdatatvaried_headerstheader((s?/tmp/pip-build-0nEYGB/pip/pip/_vendor/cachecontrol/serialize.pyR3#s<          $cCsū|s dSy|jddƒ\}}Wntk r?d}nX|d dkrc||}d}n|jddƒdjdƒ}y#t|d j|ƒƒ||ƒSWntk rđdSXdS( NR iscc=0iscc=t=iĸĸĸĸRs _loads_v{0}(R,t ValueErrorRtgetattrtformattAttributeError(R5R6R8tver((s?/tmp/pip-build-0nEYGB/pip/pip/_vendor/cachecontrol/serialize.pytloads[s    # cCsd|jdiƒkrdSxE|jdiƒjƒD]+\}}|jj|dƒ|kr5dSq5W|djdƒ}td|ddƒ}|jdd ƒd krķ|jdƒn||ddđsRRcss?|]5\}}t|ƒ|dk r0t|ƒn|fVqdS(N(RR!(RRR((s?/tmp/pip-build-0nEYGB/pip/pip/_vendor/cachecontrol/serialize.pys ĀsR( R2RAR0t decompressRR<RR*R+RRK(R5R6R8RH((s?/tmp/pip-build-0nEYGB/pip/pip/_vendor/cachecontrol/serialize.pyt _loads_v2Ūs% #N( t__name__t __module__R!R3RARKRLRMRO(((s?/tmp/pip-build-0nEYGB/pip/pip/_vendor/cachecontrol/serialize.pyR!s  8  (  (RR'R2R0tpip._vendor.requests.structuresRtcompatRRRR R RRRtobjectR(((s?/tmp/pip-build-0nEYGB/pip/pip/_vendor/cachecontrol/serialize.pyts