/usr/lib/python2.6/site-packages/urllib3
NameSizeModeActions
contrib/-0755rm
packages/-0755rm
util/-0755rm
connection.py89670644editdlrm
connection.pyc80210644editdlrm
connectionpool.py304140644editdlrm
connectionpool.pyc244930644editdlrm
exceptions.py41090644editdlrm
exceptions.pyc81230644editdlrm
fields.py58330644editdlrm
fields.pyc65580644editdlrm
filepost.py22810644editdlrm
filepost.pyc31820644editdlrm
poolmanager.py94160644editdlrm
poolmanager.pyc98810644editdlrm
request.py59320644editdlrm
request.pyc59990644editdlrm
response.py171490644editdlrm
response.pyc158390644editdlrm
_collections.py105200644editdlrm
_collections.pyc128410644editdlrm
__init__.py18640644editdlrm
__init__.pyc25910644editdlrm
Edit: /usr/lib/python2.6/site-packages/urllib3/_collections.pyc (12841B)
Ñò ;vVc @sîddklZlZyddklZWn&ej odd d„ƒYZnXyddklZWn#ej oddklZnXddkl Z l Z l Z dd gZ e ƒZdefd „ƒYZd efd „ƒYZd S(iÿÿÿÿ(tMappingtMutableMapping(tRLockRcBseZd„Zd„ZRS(cCsdS(N((tself((s5/tmp/pip-build-cD3xZi/urllib3/urllib3/_collections.pyt __enter__scCsdS(N((Rtexc_typet exc_valuet traceback((s5/tmp/pip-build-cD3xZi/urllib3/urllib3/_collections.pyt__exit__ s(t__name__t __module__RR(((s5/tmp/pip-build-cD3xZi/urllib3/urllib3/_collections.pyRs (t OrderedDicti(titerkeyst itervaluestPY3tRecentlyUsedContainertHTTPHeaderDictcBsbeZdZeZdd d„Zd„Zd„Zd„Z d„Z d„Z d„Z d „Z RS( s‘ Provides a thread-safe dict-like container which maintains up to ``maxsize`` keys while throwing away the least-recently-used keys beyond ``maxsize``. :param maxsize: Maximum number of recent elements to retain. :param dispose_func: Every time an item is evicted from the container, ``dispose_func(value)`` is called. Callback which will get called i cCs1||_||_|iƒ|_tƒ|_dS(N(t_maxsizet dispose_funct ContainerClst _containerRtlock(RtmaxsizeR((s5/tmp/pip-build-cD3xZi/urllib3/urllib3/_collections.pyt__init__*s  cCsB|iiiƒz'|ii|ƒ}||i|<|SWdQXdS(N(RRRRtpop(Rtkeytitem((s5/tmp/pip-build-cD3xZi/urllib3/urllib3/_collections.pyt __getitem__1s cCs§t}|iiiƒz^|ii|tƒ}||i|>> headers = HTTPHeaderDict() >>> headers.add('Set-Cookie', 'foo=bar') >>> headers.add('set-cookie', 'baz=quxx') >>> headers['content-length'] = '7' >>> headers['SET-cookie'] 'foo=bar, baz=quxx' >>> headers['Content-Length'] '7' cKswtt|ƒiƒh|_|dj o2t|tƒo|i|ƒq[|i|ƒn|o|i|ƒndS(N(tsuperRRRR/t isinstancet _copy_fromtextend(Rtheaderstkwargs((s5/tmp/pip-build-cD3xZi/urllib3/urllib3/_collections.pyR†s  cCs*||f|i|iƒ<|i|iƒS(N(Rtlower(RRtval((s5/tmp/pip-build-cD3xZi/urllib3/urllib3/_collections.pyR%‘scCs$|i|iƒ}di|dƒS(Ns, i(RR6tjoin(RRR7((s5/tmp/pip-build-cD3xZi/urllib3/urllib3/_collections.pyR•scCs|i|iƒ=dS(N(RR6(RR((s5/tmp/pip-build-cD3xZi/urllib3/urllib3/_collections.pyR&™scCs|iƒ|ijS(N(R6R(RR((s5/tmp/pip-build-cD3xZi/urllib3/urllib3/_collections.pyt __contains__œscCs‰t|tƒ ot|dƒ otSt|t|ƒƒpt|ƒ|ƒ}ntd„|iƒDƒƒtd„|iƒDƒƒjS(NR-css+x$|]\}}|iƒ|fVqWdS(N(R6(t.0tktv((s5/tmp/pip-build-cD3xZi/urllib3/urllib3/_collections.pys ¤s css+x$|]\}}|iƒ|fVqWdS(N(R6(R:R;R<((s5/tmp/pip-build-cD3xZi/urllib3/urllib3/_collections.pys ¥s (R1RthasattrR!ttypetdictt itermerged(Rtother((s5/tmp/pip-build-cD3xZi/urllib3/urllib3/_collections.pyt__eq__Ÿs "cCs|i|ƒ S(N(RB(RRA((s5/tmp/pip-build-cD3xZi/urllib3/urllib3/_collections.pyt__ne__§scCs t|iƒS(N(RR(R((s5/tmp/pip-build-cD3xZi/urllib3/urllib3/_collections.pyR'°sccs'x |iiƒD]}|dVqWdS(Ni(RR,(Rtvals((s5/tmp/pip-build-cD3xZi/urllib3/urllib3/_collections.pyR)³scCsKy||}Wn+tj o||ijo‚n|SX||=|SdS(s©D.pop(k[,d]) -> v, remove specified key and return the corresponding value. If key is not found, d is returned if given, otherwise KeyError is raised. N(tKeyErrort_HTTPHeaderDict__marker(RRtdefaultR"((s5/tmp/pip-build-cD3xZi/urllib3/urllib3/_collections.pyR¸scCs%y ||=Wntj onXdS(N(RE(RR((s5/tmp/pip-build-cD3xZi/urllib3/urllib3/_collections.pytdiscardÉs cCs|iƒ}||f}|ii||ƒ}||j oCt|tƒo|i|ƒq}|d|d|g|i|>> headers = HTTPHeaderDict(foo='bar') >>> headers.add('Foo', 'baz') >>> headers['foo'] 'bar, baz' iiN(R6Rt setdefaultR1R*tappend(RRR7t key_lowertnew_valsRD((s5/tmp/pip-build-cD3xZi/urllib3/urllib3/_collections.pytaddÏs   cOsgt|ƒdjotdit|ƒƒƒ‚nt|ƒdjo |dnd}t|tƒo1xÍ|iƒD]\}}|i||ƒqsWn t|tƒo)xŒ|D]}|i|||ƒq®Wngt|dƒo/xS|i ƒD]}|i|||ƒqíWn(x$|D]\}}|i||ƒqWx*|i ƒD]\}}|i||ƒqCWdS(sÀGeneric import function for any type of header-like object. Adapted version of MutableMapping.update in order to insert items with self.add instead of self.__setitem__ is8extend() takes at most 1 positional arguments ({} given)iR-N(( Rt TypeErrortformatR1Rt iteritemsRMRR=R-titems(RtargsR5RARR7R"((s5/tmp/pip-build-cD3xZi/urllib3/urllib3/_collections.pyR3æs, $    cCsVy|i|iƒ}Wntj ogSXt|tƒo |dgS|dSdS(smReturns a list of all the values for the named field. Returns an empty list if the key doesn't exist.iN(RR6RER1ttuple(RRRD((s5/tmp/pip-build-cD3xZi/urllib3/urllib3/_collections.pytgetlists cCs#dt|ƒit|iƒƒfS(Ns%s(%s)(R>R R?R@(R((s5/tmp/pip-build-cD3xZi/urllib3/urllib3/_collections.pyt__repr__scCs^xW|D]O}|i|ƒ}t|tƒot|ƒ}n|g||i|iƒR2(Rtclone((s5/tmp/pip-build-cD3xZi/urllib3/urllib3/_collections.pytcopys ccsLxE|D]=}|i|iƒ}x!|dD]}|d|fVq+WqWdS(s8Iterate over all header lines, including duplicate ones.iiN(RR6(RRRDR7((s5/tmp/pip-build-cD3xZi/urllib3/urllib3/_collections.pyRP"s  ccsDx=|D]5}|i|iƒ}|ddi|dƒfVqWdS(s:Iterate over all headers, merging duplicate ones together.is, iN(RR6R8(RRR7((s5/tmp/pip-build-cD3xZi/urllib3/urllib3/_collections.pyR@)scCst|iƒƒS(N(R*RP(R((s5/tmp/pip-build-cD3xZi/urllib3/urllib3/_collections.pyRQ/scCsšg}x‡|iD]|}|idƒo5|d\}}||d|iƒf|ds  J