8f` ^dZddlmZddlmZmZGddeZGddeZd S) zO requests.structures ~~~~~~~~~~~~~~~~~~~ Data structures that power Requests. ) OrderedDict)MappingMutableMappingcPeZdZdZd dZdZdZdZdZdZ d Z d Z d Z d Z dS)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|dSN)r_storeupdate)selfdatakwargss /builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/pip/_vendor/requests/structures.py__init__zCaseInsensitiveDict.__init__(s7!mm <D D##F#####cB||f|j|<dSr r lower)r keyvalues r __setitem__zCaseInsensitiveDict.__setitem__.s"%(< CIIKK   rcL|j|dS)Nrrr rs r __getitem__zCaseInsensitiveDict.__getitem__3s{399;;'**rc:|j|=dSr rrs r __delitem__zCaseInsensitiveDict.__delitem__6s K $ $ $rcHd|jDS)Nc3 K|] \}}|V dSr ).0casedkey mappedvalues r z/CaseInsensitiveDict.__iter__..:s'KK2X{KKKKKKr)r valuesr s r__iter__zCaseInsensitiveDict.__iter__9s$KKdk6H6H6J6JKKKKrc*t|jSr )lenr r&s r__len__zCaseInsensitiveDict.__len__<s4;rcHd|jDS)z.Like iteritems(), but with all lowercase keys.c30K|]\}}||dfVdS)rNr )r!lowerkeykeyvals rr$z2CaseInsensitiveDict.lower_items..As0TT*<8V6!9%TTTTTTr)r itemsr&s r lower_itemszCaseInsensitiveDict.lower_items?s$TT @Q@Q@S@STTTTrct|trt|}ntSt |t |kSr ) isinstancerrNotImplementeddictr0)r others r__eq__zCaseInsensitiveDict.__eq__Cs\ eW % % "'..EE! !D$$&&''40A0A0C0C+D+DDDrcNt|jSr )rr r%r&s rcopyzCaseInsensitiveDict.copyLs"4;#5#5#7#7888rc^tt|Sr )strr4r/r&s r__repr__zCaseInsensitiveDict.__repr__Os 4 %%&&&rr )__name__ __module__ __qualname____doc__rrrrr'r*r0r6r8r;r rrrr s4$$$$ 000 +++%%%LLL   UUUEEE999'''''rrc8eZdZdZdfd ZdZdZddZxZS) LookupDictzDictionary lookup object.NcV||_tdSr )namesuperr)r rC __class__s rrzLookupDict.__init__Vs&  rcd|jdS)Nz )rCr&s rr;zLookupDict.__repr__Zs(49((((rc8|j|dSr __dict__getrs rrzLookupDict.__getitem__]s}  d+++rc8|j||Sr rH)r rdefaults rrJzLookupDict.getbs}  g...rr ) r<r=r>r?rr;rrJ __classcell__)rEs@rrArASsu##))),,, ////////rrAN) r? collectionsrcompatrrrr4rAr rrrPs$#####++++++++C'C'C'C'C'.C'C'C'L//////////r