f` PdZddlmZddlmZmZGddeZGddeZy ) zO requests.structures ~~~~~~~~~~~~~~~~~~~ Data structures that power Requests. ) OrderedDict)MappingMutableMappingcNeZdZdZd dZdZdZdZdZdZ d Z d Z d Z d Z y)CaseInsensitiveDictaA case-insensitive ``dict``-like object. Implements all methods and operations of ``MutableMapping`` as well as dict's ``copy``. Also provides ``lower_items``. All keys are expected to be strings. The structure remembers the case of the last key to be set, and ``iter(instance)``, ``keys()``, ``items()``, ``iterkeys()``, and ``iteritems()`` will contain case-sensitive keys. However, querying and contains testing is case insensitive:: cid = CaseInsensitiveDict() cid['Accept'] = 'application/json' cid['aCCEPT'] == 'application/json' # True list(cid) == ['Accept'] # True For example, ``headers['content-encoding']`` will return the value of a ``'Content-Encoding'`` response header, regardless of how the header name was originally stored. If the constructor, ``.update``, or equality comparison operations are given keys that have equal ``.lower()``s, the behavior is undefined. Nc Pt|_|i}|j|fi|yN)r_storeupdate)selfdatakwargss \/var/lib/jenkins/workspace/mettalog/venv/lib/python3.12/site-packages/requests/structures.py__init__zCaseInsensitiveDict.__init__(s(!m <D D#F#cB||f|j|j<yr r lower)r keyvalues r __setitem__zCaseInsensitiveDict.__setitem__.s%(< CIIK rcB|j|jdS)Nrrr rs r __getitem__zCaseInsensitiveDict.__getitem__3s{{399;'**rc:|j|j=yr rrs r __delitem__zCaseInsensitiveDict.__delitem__6s KK $rcDd|jjDS)Nc3&K|] \}}| ywr ).0casedkey mappedvalues r z/CaseInsensitiveDict.__iter__..:sK2X{Ks)r valuesr s r__iter__zCaseInsensitiveDict.__iter__9sKdkk6H6H6JKKrc,t|jSr )lenr r&s r__len__zCaseInsensitiveDict.__len__<s4;;rcDd|jjDS)z.Like iteritems(), but with all lowercase keys.c30K|]\}}||dfyw)rNr )r!lowerkeykeyvals rr$z2CaseInsensitiveDict.lower_items..AsT*<8V6!9%Ts)r itemsr&s r lower_itemszCaseInsensitiveDict.lower_items?sT @Q@Q@STTrct|tr t|}ntSt |j t |j k(Sr ) isinstancerrNotImplementeddictr0)r others r__eq__zCaseInsensitiveDict.__eq__CsC eW %'.E! !D$$&'40A0A0C+DDDrcHt|jjSr )rr r%r&s rcopyzCaseInsensitiveDict.copyLs"4;;#5#5#788rcFtt|jSr )strr4r/r&s r__repr__zCaseInsensitiveDict.__repr__Os4 %&&rr )__name__ __module__ __qualname____doc__rrrrr'r*r0r6r8r;r rrrr s<4$ 0 +%L UE9'rrc8eZdZdZdfd ZdZdZddZxZS) LookupDictzDictionary lookup object.c0||_t| yr )namesuperr)r rC __class__s rrzLookupDict.__init__Vs  rc"d|jdS)Nz )rCr&s rr;zLookupDict.__repr__Zs499+R((rc:|jj|dSr __dict__getrs rrzLookupDict.__getitem__]s}}  d++rc:|jj||Sr rH)r rdefaults rrJzLookupDict.getbs}}  g..rr ) r<r=r>r?rr;rrJ __classcell__)rEs@rrArASs#), /rrAN) r? collectionsrcompatrrrr4rAr rrrPs-$+C'.C'L//r