Re ^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/BUILDROOT/alt-python311-pip-21.3.1-3.el8.x86_64/opt/alt/python311/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__0s"%(< CIIKK   rcL|j|dS)Nrrr rs r __getitem__zCaseInsensitiveDict.__getitem__5s{399;;'**rc:|j|=dSr rrs r __delitem__zCaseInsensitiveDict.__delitem__8s K $ $ $rcHd|jDS)Nc3 K|] \}}|V dSr ).0casedkey mappedvalues r z/CaseInsensitiveDict.__iter__..<s'KK2X{KKKKKKr)r valuesr s r__iter__zCaseInsensitiveDict.__iter__;s$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..CsC  "6vay !      r)r itemsr&s r lower_itemszCaseInsensitiveDict.lower_itemsAs3  {  ""    rct|trt|}ntSt |t |kSr ) isinstancerrNotImplementeddictr0)r others r__eq__zCaseInsensitiveDict.__eq__Is\ eW % % "'..EE! !D$$&&''40A0A0C0C+D+DDDrcNt|jSr )rr r%r&s rcopyzCaseInsensitiveDict.copyRs"4;#5#5#7#7888rc^tt|Sr )strr4r/r&s r__repr__zCaseInsensitiveDict.__repr__Us 4 %%&&&rr )__name__ __module__ __qualname____doc__rrrrr'r*r0r6r8r;r rrrrs4$$$$ 000 +++%%%LLL      EEE999'''''rrc8eZdZdZdfd ZdZdZddZxZS) LookupDictzDictionary lookup object.Ncd||_tt|dSr )namesuperrAr)r rC __class__s rrzLookupDict.__init__\s,  j$((*****rcd|jzS)Nz )rCr&s rr;zLookupDict.__repr__`s DI..rc8|j|dSr __dict__getrs rrzLookupDict.__getitem__cs}  d+++rc8|j||Sr rH)r rdefaults rrJzLookupDict.geths}  g...rr ) r<r=r>r?rr;rrJ __classcell__)rEs@rrArAYsu##++++++///,,, ////////rrAN) r? collectionsrcompatrrrr4rAr rrrPs$#####++++++++G'G'G'G'G'.G'G'G'T//////////r