/usr/lib/python2.6/site-packages/requests/packages/urllib3
NameSizeModeActions
contrib/-0755rm
packages/-0755rm
util/-0755rm
connection.py90110644editdlrm
connection.pyc82690644editdlrm
connectionpool.py303190644editdlrm
connectionpool.pyc248680644editdlrm
exceptions.py43740644editdlrm
exceptions.pyc91910644editdlrm
fields.py58330644editdlrm
fields.pyc67670644editdlrm
filepost.py22810644editdlrm
filepost.pyc33150644editdlrm
poolmanager.py94060644editdlrm
poolmanager.pyc102160644editdlrm
request.py57510644editdlrm
request.pyc60380644editdlrm
response.py164590644editdlrm
response.pyc158140644editdlrm
_collections.py104540644editdlrm
_collections.pyc132730644editdlrm
__init__.py20550644editdlrm
__init__.pyc27660644editdlrm
Edit: /usr/lib/python2.6/site-packages/requests/packages/urllib3/_collections.pyc (13273B)
Ñò >> 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' cKshti|ƒ|dj o2t|tƒo|i|ƒqL|i|ƒn|o|i|ƒndS(N(tdictRR/t isinstanceRt _copy_fromtextend(Rtheaderstkwargs((sH/tmp/pip-build-cD3xZi/requests/requests/packages/urllib3/_collections.pyRs  cCst||iƒ||fƒS(N(t _dict_setitemtlower(RRtval((sH/tmp/pip-build-cD3xZi/requests/requests/packages/urllib3/_collections.pyR%—scCs&t||iƒƒ}di|dƒS(Ns, i(t _dict_getitemR7tjoin(RRR8((sH/tmp/pip-build-cD3xZi/requests/requests/packages/urllib3/_collections.pyRšscCst||iƒƒS(N(t _dict_delitemR7(RR((sH/tmp/pip-build-cD3xZi/requests/requests/packages/urllib3/_collections.pyR&žscCst||iƒƒS(N(t_dict_containsR7(RR((sH/tmp/pip-build-cD3xZi/requests/requests/packages/urllib3/_collections.pyt __contains__¡scs‰tˆtƒ otˆdƒ otStˆtˆƒƒptˆƒˆƒ‰nt‡fd†ˆDƒƒt‡fd†ˆDƒƒjS(NR-c3s#x|]}|ˆ|fVqWdS(N((t.0tk1(R(sH/tmp/pip-build-cD3xZi/requests/requests/packages/urllib3/_collections.pys ©s c3s#x|]}|ˆ|fVqWdS(N((R>tk2(tother(sH/tmp/pip-build-cD3xZi/requests/requests/packages/urllib3/_collections.pys ©s (R1RthasattrR!ttypeR0(RRA((RRAsH/tmp/pip-build-cD3xZi/requests/requests/packages/urllib3/_collections.pyt__eq__¤s "cCs|i|ƒ S(N(RD(RRA((sH/tmp/pip-build-cD3xZi/requests/requests/packages/urllib3/_collections.pyt__ne__«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"((sH/tmp/pip-build-cD3xZi/requests/requests/packages/urllib3/_collections.pyR¸scCs%y ||=Wntj onXdS(N(RF(RR((sH/tmp/pip-build-cD3xZi/requests/requests/packages/urllib3/_collections.pytdiscardÉs cCs|iƒ}||f}t|||ƒ}||j oFt|tƒo|i|ƒq}t|||d|d|gƒndS(sâAdds a (name, value) pair, doesn't overwrite the value if it already exists. >>> headers = HTTPHeaderDict(foo='bar') >>> headers.add('Foo', 'baz') >>> headers['foo'] 'bar, baz' iiN(R7t_dict_setdefaultR1R*tappendR6(RRR8t key_lowertnew_valstvals((sH/tmp/pip-build-cD3xZi/requests/requests/packages/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 iteritemsRORRBR-titems(RtargsR5RARR8R"((sH/tmp/pip-build-cD3xZi/requests/requests/packages/urllib3/_collections.pyR3æs, $    cCsXyt||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(R9R7RFR1ttuple(RRRN((sH/tmp/pip-build-cD3xZi/requests/requests/packages/urllib3/_collections.pytgetlists cCs#dt|ƒit|iƒƒfS(Ns%s(%s)(RCR R0t itermerged(R((sH/tmp/pip-build-cD3xZi/requests/requests/packages/urllib3/_collections.pyt__repr__scCsTxM|D]E}t||ƒ}t|tƒot|ƒ}nt|||ƒqWdS(N(R9R1R*R6(RRARR8((sH/tmp/pip-build-cD3xZi/requests/requests/packages/urllib3/_collections.pyR2s cCs t|ƒƒ}|i|ƒ|S(N(RCR2(Rtclone((sH/tmp/pip-build-cD3xZi/requests/requests/packages/urllib3/_collections.pytcopys ccsHxA|D]9}t||ƒ}x!|dD]}|d|fVq'WqWdS(s8Iterate over all header lines, including duplicate ones.iiN(R9(RRRNR8((sH/tmp/pip-build-cD3xZi/requests/requests/packages/urllib3/_collections.pyRR"s  ccs@x9|D]1}t||ƒ}|ddi|dƒfVqWdS(s:Iterate over all headers, merging duplicate ones together.is, iN(R9R:(RRR8((sH/tmp/pip-build-cD3xZi/requests/requests/packages/urllib3/_collections.pyRW)scCst|iƒƒS(N(R*RR(R((sH/tmp/pip-build-cD3xZi/requests/requests/packages/urllib3/_collections.pyRS/scCsšg}x‡|iD]|}|idƒo5|d\}}||d|iƒf|ds$  J