7,j&dZddlmZddlmZddlmZmZmZddl m Z m Z m Z m Z ddlmZe dZe d ZGd d eeefe eZGd d eeefZdS)zO requests.structures ~~~~~~~~~~~~~~~~~~~ Data structures that power Requests. ) annotations) OrderedDict)IterableIteratorMapping)AnyGenericTypeVaroverload)MutableMapping_VT_DcreZdZUdZded< dd d Zd!dZd"dZd#dZd$dZ d%dZ d&dZ d'dZ d(dZ d)dZdS)*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. z!OrderedDict[str, tuple[str, _VT]]_storeNdata4Mapping[str, _VT] | Iterable[tuple[str, _VT]] | NonekwargsrreturnNonec Pt|_|i}|j|fi|dSN)rrupdate)selfrrs CC:\PYTHON\GemmaClient\venv\Lib\site-packages\requests/structures.py__init__zCaseInsensitiveDict.__init__1s9 "mm <D D##F#####keystrvaluecB||f|j|<dSrrlower)rrr!s r __setitem__zCaseInsensitiveDict.__setitem__;s"%(< CIIKK   rcL|j|dS)Nr r#rrs r __getitem__zCaseInsensitiveDict.__getitem__@s{399;;'**rc:|j|=dSrr#r's r __delitem__zCaseInsensitiveDict.__delitem__Cs K $ $ $r Iterator[str]cHd|jDS)Nc3 K|] \}}|V dSr).0casedkey_s r z/CaseInsensitiveDict.__iter__..Gs&AA[XqAAAAAAr)rvaluesrs r__iter__zCaseInsensitiveDict.__iter__Fs$AADK,>,>,@,@AAAArintc*t|jSr)lenrr4s r__len__zCaseInsensitiveDict.__len__Is4;rIterator[tuple[str, _VT]]cHd|jDS)z.Like iteritems(), but with all lowercase keys.c30K|]\}}||dfVdS)r Nr.)r/lowerkeykeyvals rr2z2CaseInsensitiveDict.lower_items..Ns0TT*<8V6!9%TTTTTTr)ritemsr4s r lower_itemszCaseInsensitiveDict.lower_itemsLs$TT @Q@Q@S@STTTTrotherobjectboolct|trt|}ntSt |t |kSr) isinstancerrNotImplementeddictr@)rrA other_dicts r__eq__zCaseInsensitiveDict.__eq__Ps\ eW % % "3Fu3M3MJJ! !D$$&&''4 0F0F0H0H+I+IIIrCaseInsensitiveDict[_VT]cNt|jSr)rrr3r4s rcopyzCaseInsensitiveDict.copyYs"4;#5#5#7#7888rc^tt|Sr)r rGr?r4s r__repr__zCaseInsensitiveDict.__repr__\s 4 %%&&&rr)rrrrrr)rr r!rrr)rr rr)rr rr)rr+)rr6)rr:)rArBrrC)rrJrr )__name__ __module__ __qualname____doc____annotations__rr%r(r*r5r9r@rIrLrNr.rrrrs4.---FJ$$$$$0000 ++++%%%%BBBB    UUUUJJJJ9999''''''rrceZdZUdZded<ddfd Zdd Zdd Zdd Ze dddZ e ddZ dddZ xZ S) LookupDictzDictionary lookup object.rnameNrrcV||_tdSr)rWsuperr)rrW __class__s rrzLookupDict.__init__es&  rr cd|jdS)Nz )rWr4s rrNzLookupDict.__repr__is(49((((rr _VT | Nonec~||jvr |j|Stdt|jd|d)N'z' object has no attribute ')__dict__AttributeErrortyperPr's r __getattr__zLookupDict.__getattr__lsO $-  =% % JDJJ'JJCJJJ rc8|j|dSrr_getr's rr(zLookupDict.__getitem__vs}  d+++rdefaultcdSrr.rrrfs rrezLookupDict.get{sADr_D | _VTcdSrr.rhs rrezLookupDict.get~srts!#"""""######7777777777222222222222"""""" genn WT]]I'I'I'I'I'.c2GCLI'I'I'X"/"/"/"/"/c3h"/"/"/"/"/r