/opt/alt/python-internal/lib64/python3.11/http/__pycache__
NameSizeModeActions
client.cpython-311.opt-1.pyc609340644editdlrm
client.cpython-311.opt-2.pyc518420644editdlrm
client.cpython-311.pyc612320644editdlrm
cookiejar.cpython-311.opt-1.pyc878740644editdlrm
cookiejar.cpython-311.opt-2.pyc725690644editdlrm
cookiejar.cpython-311.pyc881630644editdlrm
cookies.cpython-311.opt-1.pyc226540644editdlrm
cookies.cpython-311.opt-2.pyc183020644editdlrm
cookies.cpython-311.pyc227020644editdlrm
server.cpython-311.opt-1.pyc601610644editdlrm
server.cpython-311.opt-2.pyc483110644editdlrm
server.cpython-311.pyc601610644editdlrm
__init__.cpython-311.opt-1.pyc87530644editdlrm
__init__.cpython-311.opt-2.pyc76720644editdlrm
__init__.cpython-311.pyc87530644editdlrm
Edit: /opt/alt/python-internal/lib64/python3.11/http/__pycache__/cookiejar.cpython-311.pyc (88163B)
§ ó΀#L–Ý;ãóÊ—dZgd¢ZddlZddlZddlZddlZddlZddlZddl Zddl Z ddl Z ddlmZdZdad„ZdZdZee jj¦«Zejd ¦«Zd Zd Zd „Zd Zd„Zgd¢Z gd¢Z!d„e!D¦«Z"dLd„Z#dLd„Z$dddddœZ%ejdej&¦«Z'd„Z(d„Z)ejdej&¦«Z*ejdej+ej&z¦«Z,ejdej-ej&z¦«Z.d„Z/ejdej-ej&z¦«Z0d„Z1d„Z2ejd¦«Z3ejd ¦«Z4ejd!¦«Z5ejd"¦«Z6d#„Z7ejd$¦«Z8d%„Z9d&„Z:d'„Z;ejd(ej&¦«Zd+„Z?d,„Z@ejd-ej&¦«ZAd.„ZBd/„ZCd0„ZDd1„ZEd2ZFejd3¦«ZGd4„ZHd5„ZId6„ZJd7„ZKGd8„d9¦«ZLGd:„d;¦«ZMGd<„d=eM¦«ZNd>„ZOGd?„d@¦«ZPGdA„dB¦«ZQGdC„dDeR¦«ZSGdE„dFeQ¦«ZTdG„ZUGdH„dIeT¦«ZVGdJ„dKeT¦«ZWdS)MaªHTTP cookie handling for web clients. This module has (now fairly distant) origins in Gisle Aas' Perl module HTTP::Cookies, from the libwww-perl library. Docstrings, comments and debug strings in this code refer to the attributes of the HTTP cookie system as cookie-attributes, to distinguish them clearly from Python attributes. Class diagram (note that BSDDBCookieJar and the MSIE* classes are not distributed with the Python standard library, but are available from http://wwwsearch.sf.net/): CookieJar____ / \ \ FileCookieJar \ \ / | \ \ \ MozillaCookieJar | LWPCookieJar \ \ | | \ | ---MSIEBase | \ | / | | \ | / MSIEDBCookieJar BSDDBCookieJar |/ MSIECookieJar )ÚCookieÚ CookieJarÚ CookiePolicyÚDefaultCookiePolicyÚ FileCookieJarÚ LWPCookieJarÚ LoadErrorÚMozillaCookieJaréN)ÚtimegmFcóp—tsdStsddl}| d¦«atj|ŽS)Nr zhttp.cookiejar)ÚdebugÚloggerÚloggingÚ getLogger)Úargsrs ú;/opt/alt/python-internal/lib64/python3.11/http/cookiejar.pyÚ_debugr,sA€Ý ð؈å ð5؈ˆˆØ×"Ò"Ð#3Ñ4Ô4ˆÝ Œ<˜Ð ÐóÚHTTPOnlyz #HttpOnly_z#( Netscape)? HTTP Cookie FilezQa filename was not supplied (nor was the CookieJar instance initialised with one)zr# Netscape HTTP Cookie File # http://curl.haxx.se/rfc/cookie_spec.html # This is a generated file! Do not edit. cóΗddl}ddl}ddl}| ¦«}| d|¦«| ¦«}| d|zd¬¦«dS)Nr zhttp.cookiejar bug! %sé)Ú stacklevel)ÚioÚwarningsÚ tracebackÚStringIOÚ print_excÚgetvalueÚwarn)rrrÚfÚmsgs rÚ_warn_unhandled_exceptionr"Bsz€ð#Ð"Ð"Ð"Ð"Ð"Ð"Ð"Ð"Ð"Ð"Ð"Ø � Š ‰ Œ €AØ ×Ò˜˜aÑ Ô Ð Ø �*Š*‰,Œ,€CØ ‡M‚MÐ+¨cÑ1¸a€MÑ@Ô@Ð@Ð@Ð@ri²cóü—|dd…\}}}}}}|tkr_d|cxkrdkrRnnOd|cxkrdkrBnn?d|cxkrdkr2nn/d|cxkrdkr"nnd|cxkrdkrnnt|¦«SdS) Nééé ér éé;é=)Ú EPOCH_YEARr )ÚttÚyearÚmonthÚmdayÚhourÚminÚsecs rÚ_timegmr3Qsº€Ø(*¨2¨A¨2¬Ñ%€Dˆ%��t˜S #Ø •Ò Ð  ! uÐ"2Ð"2Ò"2Ð"2°Ò"2Ð"2Ð"2Ð"2Ð"2¸¸d¸¸º¸Àbº¸¸¸¸Ø ˆdˆˆŠˆ�bŠˆˆˆˆ˜q C˜~˜~š~˜~¨2š~˜~˜~˜~˜~°A¸°N°N²N°NÀ²N°N°N°N°NÝ�b‰zŒzÐàˆtr)ÚMonÚTueÚWedÚThuÚFriÚSatÚSun) ÚJanÚFebÚMarÚAprÚMayÚJunÚJulÚAugÚSepÚOctÚNovÚDeccó6—g|]}| ¦«‘ŒS©)Úlower)Ú.0r.s rú rK\s €Ð2Ð2Ð2 %�— ’ ‘ ” Ð2Ð2Ð2rcóÔ—|€tj ¦«}ntj |¦«}d|j|j|j|j|j|jfzS)aHReturn a string representing time in seconds since epoch, t. If the function is called without an argument, it will use the current time. The format of the returned string is like "YYYY-MM-DD hh:mm:ssZ", representing Universal Time (UTC, aka GMT). An example of this format is: 1994-11-24 08:49:37Z Nz%04d-%02d-%02d %02d:%02d:%02dZ) ÚdatetimeÚutcnowÚutcfromtimestampr-r.Údayr0ÚminuteÚsecond©ÚtÚdts rÚ time2isozrV^sc€ð €yÝ Ô × %Ò %Ñ 'Ô 'ˆˆå Ô × /Ò /°Ñ 2Ô 2ˆØ +Ø Œ�”˜2œ6 2¤7¨B¬I°r´yð/Bñ BðBrcó,—|€tj ¦«}ntj |¦«}dt| ¦«|jt |jdz |j|j |j |j fzS)zðReturn a string representing time in seconds since epoch, t. If the function is called without an argument, it will use the current time. The format of the returned string is like this: Wed, DD-Mon-YYYY HH:MM:SS GMT Nz#%s, %02d-%s-%04d %02d:%02d:%02d GMTr%) rMrNrOÚDAYSÚweekdayrPÚMONTHSr.r-r0rQrRrSs rÚ time2netscaper[qsy€ð €yÝ Ô × %Ò %Ñ 'Ô 'ˆˆå Ô × /Ò /°Ñ 2Ô 2ˆØ 0Ý ˆR�ZŠZ‰\Œ\Ô˜BœF¥F¨2¬8°A©:Ô$6Ø Œ�”˜"œ) R¤Yð40ñ 0ð0r)ÚGMTÚUTCÚUTÚZz^([-+])?(\d\d?):?(\d\d)?$cóV—d}|tvrd}nšt |¦«}|r~dt| d¦«¦«z}| d¦«r(|dt| d¦«¦«zz}| d¦«dkr| }|S)Nr iréé<r%ú-)Ú UTC_ZONESÚ TIMEZONE_REÚsearchÚintÚgroup)ÚtzÚoffsetÚms rÚoffset_from_tz_stringrlˆsž€Ø €FØ �Y€€Øˆˆå × Ò ˜rÑ "Ô "ˆØ ð !Ø�C §¢¨¡ ¤ ™OœOÑ+ˆFØ�wŠw�q‰zŒzð 7Ø "¥s¨1¯7ª7°1©:¬:¡¤Ñ"6Ñ6�Ø�wŠw�q‰zŒz˜SÒ Ð Ø ˜�Ø €Mrc ó.—t|¦«}|tjkrdS t | ¦«¦«dz}nI#t $r< t|¦«}n#t $rYYdSwxYwd|cxkrdkrnn|}nYdSYnwxYw|€d}|€d}|€d}t|¦«}t|¦«}t|¦«}t|¦«}|dkrctjtj¦«¦«d}|dz} |} ||z| z }| | z } t| ¦«dkr| dkr|dz}n|dz }t|||||||f¦«} | �0|€d}|  ¦«}t|¦«} | €dS| | z } | S)Nr%r&r ièédé2r]) rgrMÚMAXYEARÚ MONTHS_LOWERÚindexrIÚ ValueErrorÚtimeÚ localtimeÚabsr3Úupperrl) rPÚmonÚyrÚhrr1r2riÚimonÚcur_yrrkÚtmprTrjs rÚ _str2timer~–sà€Ý ˆR‰Œ€BØ �HÔ ÒÐØˆtð Ý× Ò  §¢¡¤Ñ-Ô-¨aÑ/ˆˆøÝ ð ð ð ð Ý�s‘8”8ˆDˆDøÝð ð ð Ø�4�4�4ð øøøà �ˆ?ˆ?Š?ˆ?˜Š?ˆ?ˆ?ˆ?ˆ?؈CˆCà�4�4ð ˆCð øøøð €z˜�2Ø €{˜!�CØ €{˜!�Cå ˆc‰(Œ(€CÝ ˆR‰Œ€BÝ ˆc‰(Œ(€CÝ ˆc‰(Œ(€Cà ˆD‚y€y唥¤ ¡ ¤ Ñ,Ô,¨QÔ/ˆØ �S‰LˆØˆØ �&‰[˜1‰_ˆØ �‰GˆÝ ˆq‰6Œ6�BŠ;ˆ;Ø�1Šuˆu˜2 ™8�b�bؘC‘x�"õ ��S˜#˜r 3¨¨RÐ0Ñ1Ô1€Aà€}à ˆ:؈BØ �XŠX‰ZŒZˆÝ& rÑ*Ô*ˆØ ˆ>Ø�4Ø �‰Jˆà €Hs5£/AÁ BÁA.Á-BÁ. A=Á8BÁ<A=Á=BÂBzV^[SMTWF][a-z][a-z], (\d\d) ([JFMASOND][a-z][a-z]) (\d\d\d\d) (\d\d):(\d\d):(\d\d) GMT$z+^(?:Sun|Mon|Tue|Wed|Thu|Fri|Sat)[a-z]*,?\s*aò^ (\d\d?) # day (?:\s+|[-\/]) (\w+) # month (?:\s+|[-\/]) (\d+) # year (?: (?:\s+|:) # separator before clock (\d\d?):(\d\d) # hour:min (?::(\d\d))? # optional seconds )? # optional clock \s* (?: ([-+]?\d{2,4}|(?![APap][Mm]\b)[A-Za-z]+) # timezone \s* )? (?: \(\w+\) # ASCII representation of timezone in parens. \s* )?$c óÔ—t |¦«}|r¿| ¦«}t |d ¦«¦«dz}t |d¦«|t |d¦«t |d¦«t |d¦«t|d¦«f}t|¦«S|  ¦«}t  d|d¦«}dgd z\}}}}}} } t |¦«}|�| ¦«\}}}}}} } ndSt|||||| | ¦«S) aÕReturns time in seconds since epoch of time represented by a string. Return value is an integer. None is returned if the format of str is unrecognized, the time is outside the representable range, or the timezone string is not recognized. If the string contains no timezone, UTC is assumed. The timezone in the string may be numerical (like "-0800" or "+0100") or a string timezone (like "UTC", "GMT", "BST" or "EST"). Currently, only the timezone strings equivalent to UTC (zero offset) are known to the function. The function loosely parses the following formats: Wed, 09 Feb 1994 22:23:32 GMT -- HTTP format Tuesday, 08-Feb-94 14:15:29 GMT -- old rfc850 HTTP format Tuesday, 08-Feb-1994 14:15:29 GMT -- broken rfc850 HTTP format 09 Feb 1994 22:23:32 GMT -- HTTP format (no weekday) 08-Feb-94 14:15:29 GMT -- rfc850 format (no weekday) 08-Feb-1994 14:15:29 GMT -- broken rfc850 format (no weekday) The parser ignores leading and trailing whitespace. The time may be absent. If the year is given with only 2 digits, the function will select the century that makes the year closest to the current date. r%rr raééÚNé)ÚSTRICT_DATE_RErfÚgroupsrqrrrIrgÚfloatr3ÚlstripÚ WEEKDAY_REÚsubÚLOOSE_HTTP_DATE_REr~) ÚtextrkÚgrxr,rPryrzr1r2ris rÚ http2timer�ès:€õ< ×Ò˜dÑ#Ô#€AØðØ �HŠH‰JŒJˆÝ× Ò   1¤§¢¡¤Ñ.Ô.°Ñ2ˆÝ�!�A”$‰iŒi˜�c ! A¤$™iœiÝ�!�A”$‰iŒi�˜Q˜qœT™œ¥E¨!¨A¬$¡K¤Kð1ˆå�r‰{Œ{Ðð �;Š;‰=Œ=€DÝ �>Š>˜"˜d AÑ &Ô &€Dð'+ V¨A¡XÑ"€Cˆˆb�"�c˜3 õ ×!Ò! $Ñ'Ô'€AØ€}Ø)*¯ª©¬Ñ&ˆˆS�"�b˜#˜s B Bàˆtå �S˜#˜r 2 s¨C°Ñ 4Ô 4Ð4raÖ^ (\d{4}) # year [-\/]? (\d\d?) # numerical month [-\/]? (\d\d?) # day (?: (?:\s+|[-:Tt]) # separator before clock (\d\d?):?(\d\d) # hour:min (?::?(\d\d(?:\.\d*)?))? # optional seconds (and fractional) )? # optional clock \s* (?: ([-+]?\d\d?:?(:?\d\d)? |Z|z) # timezone (Z is "zero meridian", i.e. GMT) \s* )?$c óè—| ¦«}dgdz\}}}}}}}t |¦«}|�| ¦«\}}}}}}}} ndSt |||||||¦«S)av As for http2time, but parses the ISO 8601 formats: 1994-02-03 14:15:29 -0100 -- ISO 8601 format 1994-02-03 14:15:29 -- zone is optional 1994-02-03 -- only date 1994-02-03T14:15:29 -- Use T as separator 19940203T141529Z -- ISO 8601 compact format 19940203 -- only date Nrƒ)r‡Ú ISO_DATE_RErfr…r~) r‹rPrxryrzr1r2rirkÚ_s rÚiso2timer‘2sˆ€ð �;Š;‰=Œ=€Dð'+ V¨A¡XÑ"€Cˆˆb�"�c˜3 õ ×Ò˜4Ñ Ô €AØ€}ð-.¯HªH©J¬JÑ)ˆˆC��b˜#˜s B¨¨àˆtå �S˜#˜r 2 s¨C°Ñ 4Ô 4Ð4rcóp—| d¦«\}}|jd|…|j|d…zS)z)Return unmatched part of re.Match object.r N)ÚspanÚstring)ÚmatchÚstartÚends rÚ unmatchedr˜Ss6€à—’˜A‘”�J€Eˆ3Ø Œ<˜˜˜Ô  ¤ ¨S¨T¨TÔ 2Ñ 2Ð2rz^\s*([^=\s;,]+)z&^\s*=\s*\"([^\"\\]*(?:\\.[^\"\\]*)*)\"z^\s*=\s*([^\s;,]*)z\\(.)cóÀ—t|t¦«rJ‚g}|D�]À}|}g}|�rŸt |¦«}|rït |¦«}| d¦«}t  |¦«}|r@t |¦«}| d¦«}t d|¦«}nWt |¦«}|r9t |¦«}| d¦«}|  ¦«}nd}|  ||f¦«n‘|  ¦«  d¦«r6|  ¦«dd…}|r|  |¦«g}n4tjdd|¦«\}} | dksJd|›d |›d |›�¦«‚|}|�°Ÿ|r|  |¦«�ŒÂ|S) amParse header values into a list of lists containing key,value pairs. The function knows how to deal with ",", ";" and "=" as well as quoted values after "=". A list of space separated tokens are parsed as if they were separated by ";". If the header_values passed as argument contains multiple values, then they are treated as if they were a single value separated by comma ",". This means that this function is useful for parsing header fields that follow this syntax (BNF as from the HTTP/1.1 specification, but we relax the requirement for tokens). headers = #header header = (token | parameter) *( [";"] (token | parameter)) token = 1* separators = "(" | ")" | "<" | ">" | "@" | "," | ";" | ":" | "\" | <"> | "/" | "[" | "]" | "?" | "=" | "{" | "}" | SP | HT quoted-string = ( <"> *(qdtext | quoted-pair ) <"> ) qdtext = > quoted-pair = "\" CHAR parameter = attribute "=" value attribute = token value = token | quoted-string Each header is represented by a list of key/value pairs. The value for a simple token (not part of a parameter) is None. Syntactically incorrect headers will not necessarily be parsed as you would want. This is easier to describe with some examples: >>> split_header_words(['foo="bar"; port="80,81"; discard, bar=baz']) [[('foo', 'bar'), ('port', '80,81'), ('discard', None)], [('bar', 'baz')]] >>> split_header_words(['text/html; charset="iso-8859-1"']) [[('text/html', None), ('charset', 'iso-8859-1')]] >>> split_header_words([r'Basic realm="\"foo\bar\""']) [[('Basic', None), ('realm', '"foobar"')]] r%z\1Nú,z^[=\s;]*r‚r zsplit_header_words bug: 'z', 'z', )Ú isinstanceÚstrÚHEADER_TOKEN_RErfr˜rhÚHEADER_QUOTED_VALUE_REÚHEADER_ESCAPE_REr‰ÚHEADER_VALUE_REÚrstripÚappendr‡Ú startswithÚreÚsubn) Ú header_valuesÚresultr‹Ú orig_textÚpairsrkÚnameÚvalueÚnon_junkÚ nr_junk_charss rÚsplit_header_wordsr®\sõ€õZ˜-­Ñ-Ô-Ð-Ð-Ð -Ø €FØð#'ñ#'ˆØˆ ؈Øñ Ý×&Ò& tÑ,Ô,ˆAØð Ý  ‘|”|�Ø—w’w˜q‘z”z�Ý*×1Ò1°$Ñ7Ô7�Øð %Ý$ Q™<œ<�DØŸGšG A™JœJ�EÝ,×0Ò0°¸Ñ>Ô>�E�Eå'×.Ò.¨tÑ4Ô4�AØð%Ý(¨™|œ|˜Ø !§¢¨¡ ¤ ˜Ø %§ ¢ ¡¤˜˜ð!%˜Ø— ’ ˜d E˜]Ñ+Ô+Ð+Ð+Ø—’‘”×)Ò)¨#Ñ.Ô.ð à—{’{‘}”} Q R RÔ(�ØÐ.˜&Ÿ-š-¨Ñ.Ô.Ð.Ø��õ+-¬'°+¸rÀ4Ñ*HÔ*HÑ'�˜-Ø$ qÒ(Ð(Ð(Ð(à�Y�Y    e eð-ñ)Ô(Ð(ð �ð?ñ ð@ Ð&�&—-’- Ñ&Ô&Ð&ùØ €Mrú([\"\\])cóH—g}|D]‰}g}|D]X\}}|�>> join_header_words([[("text/plain", None), ("charset", "iso-8859-1")]]) 'text/plain; charset="iso-8859-1"' >>> join_header_words([[("text/plain", None)], [("charset", "iso-8859-1")]]) 'text/plain, charset="iso-8859-1"' Nz^\w+$ú\\\1z"%s"ú=ú; ú, )r¤rfÚHEADER_JOIN_ESCAPE_REr‰r¢Újoin)ÚlistsÚheadersr©ÚattrÚkÚvs rÚjoin_header_wordsr¼²s¼€ð€GØð 1ð 1ˆØˆØð ð ‰DˆAˆq؈}Ý”y ¨1Ñ-Ô-ð#Ý-×1Ò1°'¸1Ñ=Ô=�AØ ™ �AØ ˜q˜q ! !Ð$�Ø �KŠK˜‰NŒNˆNˆNØ Ð0�—’ § ¢ ¨$¡¤Ñ0Ô0Ð0øØ �9Š9�WÑ Ô Ðrcó‚—| d¦«r |dd…}| d¦«r |dd…}|S)Nú"r%éÿÿÿÿ)r£Úendswith©r‹s rÚ strip_quotesrÂËsI€Ø ‡‚�sÑÔðØ�A�B�BŒxˆØ ‡}‚}�SÑÔðØ�C�R�CŒyˆØ €Krcó‚—d}g}|D�]6}g}d}t| d¦«¦«D]Þ\}}| ¦«}| d¦«\}} } | ¦«}|s |dkrn�ŒQ| r|  ¦«nd} |dkrX| ¦«} | |vr| }|dkr| �t | ¦«} d}n$|d kr| �t t | ¦«¦«} | || f¦«Œß|r,|s| d ¦«| |¦«�Œ8|S) a5Ad-hoc parser for Netscape protocol cookie-attributes. The old Netscape cookie format for Set-Cookie can for instance contain an unquoted "," in the expires field, so we have to use this ad-hoc parser instead of split_header_words. XXX This may not make the best possible effort to parse all the crap that Netscape Cookie headers contain. Ronald Tschalar's HTTPClient parser is probably better, so could do worse than following that if this ever gives any trouble. Currently, this is also used for parsing RFC 2109 cookies. )ÚexpiresÚdomainÚpathÚsecureÚversionÚportúmax-ageFú;r²r NrÈTrÄ)rÈÚ0)Ú enumerateÚsplitÚstripÚ partitionrIrÂr�r¢) Ú ns_headersÚ known_attrsr§Ú ns_headerr©Ú version_setÚiiÚparamÚkeyÚsepÚvalÚlcs rÚparse_ns_headersrÛÒsw€ð1€Kð€FØð+!ñ+!ˆ ؈؈ õ # 9§?¢?°3Ñ#7Ô#7Ñ8Ô8ð %ð %‰IˆB�Ø—K’K‘M”MˆEà!ŸOšO¨CÑ0Ô0‰MˆC��cØ—)’)‘+”+ˆCàð Ø˜’7�7Ø�Eàð"%Ð.�#—)’)‘+”+�+¨$ˆCà�QŠwˆwØ—Y’Y‘[”[�ؘÐ$Ð$Ø�Cà˜)Ò#Ð#à�Ý*¨3Ñ/Ô/˜Ø"&�K�KؘIÒ%Ð%à�Ý'­ °SÑ(9Ô(9Ñ:Ô:˜Ø �LŠL˜#˜s˜Ñ $Ô $Ð $Ð $à ð !Øð /Ø— ’ Ð-Ñ.Ô.Ð.Ø �MŠM˜%Ñ Ô Ð ùà €Mrz\.\d+$có‚—t |¦«rdS|dkrdS|ddks |ddkrdSdS)z*Return True if text is a host domain name.Fr‚r ú.r¿T©ÚIPV4_RErfrÁs rÚis_HDNràsN€õ‡~‚~�dÑÔð؈uØ ˆr‚z€z؈uØ ˆA„w�#‚~€~˜˜bœ Sš˜ØˆuØ ˆ4rcó.—| ¦«}| ¦«}||krdSt|¦«sdS| |¦«}|dks|dkrdS| d¦«sdSt|dd…¦«sdSdS)aýReturn True if domain A domain-matches domain B, according to RFC 2965. A and B may be host domain names or IP addresses. RFC 2965, section 1: Host names can be specified either as an IP address or a HDN string. Sometimes we compare one host name with another. (Such comparisons SHALL be case-insensitive.) Host A's name domain-matches host B's if * their host name strings string-compare equal; or * A is a HDN string and has the form NB, where N is a non-empty name string, B has the form .B', and B' is a HDN string. (So, x.y.com domain-matches .Y.com but not Y.com.) Note that domain-match is not a commutative operation: a.b.c.com domain-matches .c.com, but not the reverse. TFr¿r rÝr%N)rIràÚrfindr£)ÚAÚBÚis rÚ domain_matchræ&s�€ð. �Љ Œ €AØ �Љ Œ €A؈A‚v€v؈tÝ �!‰9Œ9ð؈uØ �Š�‰ Œ €A؈B‚w€w�!�q’&�&àˆuØ �<Š<˜Ñ Ô ð؈uÝ �!�A�B�B”%‰=Œ=ð؈uØ ˆ4rcó>—t |¦«rdSdS)zdReturn True if text is a sort-of-like a host domain name. For accepting/blocking domains. FTrÞrÁs rÚliberal_is_HDNrèMs"€õ ‡~‚~�dÑÔð؈uØ ˆ4rcó—| ¦«}| ¦«}t|¦«rt|¦«s ||krdSdS| d¦«}|r| |¦«rdS|s||krdSdS)z\For blocking/accepting domains. A and B may be host domain names or IP addresses. TFrÝ)rIrèr£rÀ)rãräÚ initial_dots rÚuser_domain_matchrëWs™€ð �Љ Œ €AØ �Љ Œ €AÝ ˜1Ñ Ô ð¥.°Ñ"3Ô"3ðØ �Š6ˆ6à�4؈uØ—,’,˜sÑ#Ô#€KØð�q—z’z !‘}”}ð؈tØ ð˜1 š6˜6؈tØ ˆ5rz:\d+$có —| ¦«}tj |¦«d}|dkr| dd¦«}t  d|d¦«}| ¦«S)zˆReturn request-host, as defined by RFC 2965. Variation from RFC: returned value is lowercased, for convenient comparison. r%r‚ÚHost)Ú get_full_urlÚurllibÚparseÚurlparseÚ get_headerÚ cut_port_rer‰rI)ÚrequestÚurlÚhosts rÚ request_hostr÷lsr€ð × Ò Ñ Ô €CÝ Œ<× Ò  Ñ %Ô % aÔ (€DØ ˆr‚z€zØ×!Ò! &¨"Ñ-Ô-ˆõ �?Š?˜2˜t QÑ 'Ô '€DØ �:Š:‰<Œ<Ðrcóœ—t|¦«x}}| d¦«dkrt |¦«s|dz}||fS)zzReturn a tuple (request-host, effective request-host name). As defined by RFC 2965, except both are lowercased. rÝr¿ú.local)r÷Úfindrßrf)rôÚerhnÚreq_hosts rÚeff_request_hostrý|sR€õ # 7Ñ+Ô+Ð+€Dˆ8؇}‚}�SÑÔ˜RÒЭ¯ª°xÑ(@Ô(@ÐØ˜(Ñ"ˆØ �Tˆ>ÐrcóÈ—| ¦«}tj |¦«}t |j¦«}| d¦«sd|z}|S)z6Path component of request-URI, as defined by RFC 2965.ú/)rîrïrðÚurlsplitÚ escape_pathrÆr£)rôrõÚpartsrÆs rÚ request_pathr‡sY€à × Ò Ñ Ô €CÝ ŒL× !Ò ! #Ñ &Ô &€EÝ �u”zÑ "Ô "€DØ �?Š?˜3Ñ Ô ðà�T‰zˆØ €KrcóÖ—|j}| d¦«}|dkr?||dzd…} t|¦«n(#t$rt d|¦«YdSwxYwt }|S)Nú:r r%znonnumeric port: '%s')rörúrgrsrÚDEFAULT_HTTP_PORT)rôrörårÉs rÚ request_portr‘sƒ€Ø Œ<€DØ � Š �#‰Œ€A؈A‚v€vØ�A�a‘C�D�DŒzˆð Ý �‰IŒIˆIˆIøÝð ð ð Ý Ð*¨DÑ 1Ô 1Ð 1Ø�4�4ð øøøõ!ˆØ €Ks±AÁAÁAz%/;:@&=+$,!~*'()z%([0-9a-fA-F][0-9a-fA-F])cóV—d| d¦« ¦«zS)Nz%%%sr%)rhrw)r•s rÚuppercase_escaped_charr £s#€Ø �E—K’K ‘N”N×(Ò(Ñ*Ô*Ñ *Ð*rcó�—tj |t¦«}t t |¦«}|S)zEEscape any invalid characters in HTTP URL, and uppercase all escapes.)rïrðÚquoteÚHTTP_PATH_SAFEÚESCAPED_CHAR_REr‰r )rÆs rrr¥s6€õ Œ<× Ò ˜d¥NÑ 3Ô 3€DÝ × Ò Õ5°tÑ <Ô <€DØ €KrcóÀ—| d¦«}|dkrB||dzd…}| d¦«}t|¦«r|dks|dkrd|zS|S)aBReturn reach of host h, as defined by RFC 2965, section 1. The reach R of a host name H is defined as follows: * If - H is the host domain name of a host; and, - H has the form A.B; and - A has no embedded (that is, interior) dots; and - B has at least one embedded dot, or B is the string "local". then the reach of H is .B. * Otherwise, the reach of H is H. >>> reach("www.acme.com") '.acme.com' >>> reach("acme.com") 'acme.com' >>> reach("acme.local") '.local' rÝr r%NÚlocal)rúrà)ÚhråÚbs rÚreachr³sh€ð4 �Šˆs‰ Œ €A؈A‚v€và ˆa�‰cˆdˆdŒGˆØ �FŠF�3‰KŒKˆÝ �!‰9Œ9ð ˜!˜qš&˜& A¨¢L LØ�q‘5ˆLØ €Hrcól—t|¦«}t|t|j¦«¦«sdSdS)zÜ RFC 2965, section 3.3.6: An unverifiable transaction is to a third-party host if its request- host U does not domain-match the reach R of the request-host O in the origin transaction. TF)r÷rærÚorigin_req_host)rôrüs rÚis_third_partyrÖs8€õ˜GÑ$Ô$€HÝ ˜¥%¨Ô(?Ñ"@Ô"@Ñ AÔ Að؈tàˆurcóD—eZdZdZ d d„Zd„Zd d„Zd„Zd d„Zd „Z d „Z dS) raÐHTTP Cookie. This class represents both Netscape and RFC 2965 cookies. This is deliberately a very simple class. It just holds attributes. It's possible to construct Cookie instances that don't comply with the cookie standards. CookieJar.make_cookies is the factory function for Cookie objects -- it deals with cookie parsing, supplying defaults, and normalising to the representation used in this class. CookiePolicy is responsible for checking them to see whether they should be accepted from and returned to the server. Note that the port may be present in the headers, but unspecified ("Port" rather than"Port=80", for example); if this is the case, port is None. FcóÄ—|�t|¦«}| �tt| ¦«¦«} |€|durtd¦«‚||_||_||_||_||_| ¦«|_ ||_ ||_ | |_ | |_ | |_| |_| |_||_||_||_t)j|¦«|_dS)NTz-if port is None, port_specified must be false)rgr†rsrÈrªr«rÉÚport_specifiedrIrÅÚdomain_specifiedÚdomain_initial_dotrÆÚpath_specifiedrÇrÄÚdiscardÚcommentÚ comment_urlÚrfc2109ÚcopyÚ_rest)ÚselfrÈrªr«rÉrrÅrrrÆrrÇrÄrrrÚrestrs rÚ__init__zCookie.__init__ùsÜ€ð Ð ­#¨g©,¬, Ø Ð ­#­e°G©n¬nÑ*=Ô*= Ø ˆ<˜N¨dÐ2Ð2ÝÐLÑMÔMÐ MàˆŒ ؈Œ ؈Œ ؈Œ Ø,ˆÔà—l’l‘n”nˆŒ Ø 0ˆÔð #5ˆÔ؈Œ Ø,ˆÔ؈Œ ؈Œ ؈Œ ؈Œ Ø&ˆÔ؈Œ å”Y˜t‘_”_ˆŒ ˆ ˆ rcó—||jvS©N©r!)r"rªs rÚhas_nonstandard_attrzCookie.has_nonstandard_attr#s€Ø�t”zÐ!Ð!rNcó8—|j ||¦«Sr&)r!Úget)r"rªÚdefaults rÚget_nonstandard_attrzCookie.get_nonstandard_attr%s€ØŒz�~Š~˜d GÑ,Ô,Ð,rcó—||j|<dSr&r')r"rªr«s rÚset_nonstandard_attrzCookie.set_nonstandard_attr's€Ø ˆŒ �4ÑÐÐrcóX—|€tj¦«}|j� |j|krdSdS©NTF)rtrÄ)r"Únows rÚ is_expiredzCookie.is_expired*s/€Ø ˆ;�dœi™kœk˜Ø ŒLÐ $¨4¬<¸3Ò+>Ð+>Ø�4؈urcó —|j€d}n d|jz}|j|z|jz}|j�|j›d|j›�}n|j}d|›d|›d�S)Nr‚rr²z)rÉrÅrÆr«rª)r"ÚpÚlimitÚ namevalues rÚ__str__zCookie.__str__0sf€Ø Œ9Ð  "˜a˜aØ�d”i‘-ˆaØ” ˜a‘ $¤)Ñ+ˆØ Œ:Ð !Ø#'¤9 9 9¨d¬j¨jÐ9ˆIˆIàœ ˆIøØ'0 y y°%°%°%Ð8Ð8rcóp—g}dD]9}t||¦«}| |›dt|¦«›�¦«Œ:| dt|j¦«z¦«| dt|j¦«z¦«|jj›dd |¦«›d�S)N)rÈrªr«rÉrrÅrrrÆrrÇrÄrrrr²zrest=%sz rfc2109=%sú(r´ú))Úgetattrr¢Úreprr!rÚ __class__Ú__name__r¶)r"rrªr¹s rÚ__repr__zCookie.__repr__:sµ€Øˆðð 6ð 6ˆDõ ˜4 Ñ&Ô&ˆDØ �KŠK 4 4 4­¨d©¬¨Ð4Ñ 5Ô 5Ð 5Ð 5Ø � Š �I¥ T¤ZÑ 0Ô 0Ñ0Ñ1Ô1Ð1Ø � Š �L¥4¨¬ Ñ#5Ô#5Ñ5Ñ6Ô6Ð6Øœ>Ô2Ð2Ð2°D·I²I¸d±O´O°O°OÐDÐDr)Fr&) r?Ú __module__Ú __qualname__Ú__doc__r$r(r,r.r2r8r@rHrrrrçs¡€€€€€ððð6ð(%ð(%ð(%ð(%ðT"ð"ð"ð-ð-ð-ð-ð!ð!ð!ððððð 9ð9ð9ð Eð Eð Eð Eð Errcó*—eZdZdZd„Zd„Zd„Zd„ZdS)ra Defines which cookies get accepted from and returned to server. May also modify cookies, though this is probably a bad idea. The subclass DefaultCookiePolicy defines the standard rules for Netscape and RFC 2965 cookies -- override that if you want a customized policy. có—t¦«‚)zÄReturn true if (and only if) cookie should be accepted from server. Currently, pre-expired cookies never get this far -- the CookieJar class deletes such cookies itself. ©ÚNotImplementedError©r"Úcookierôs rÚset_okzCookiePolicy.set_okRs€õ"Ñ#Ô#Ð#rcó—t¦«‚)zAReturn true if (and only if) cookie should be returned to server.rFrHs rÚ return_okzCookiePolicy.return_ok[ó€å!Ñ#Ô#Ð#rcó—dS)zMReturn false if cookies should not be returned, given cookie domain. TrH)r"rÅrôs rÚdomain_return_okzCookiePolicy.domain_return_ok_ó €ðˆtrcó—dS)zKReturn false if cookies should not be returned, given cookie path. TrH)r"rÆrôs rÚpath_return_okzCookiePolicy.path_return_okdrPrN)r?rArBrCrJrLrOrRrHrrrrIsZ€€€€€ððð$ð$ð$ð$ð$ð$ðððð ððððrrc óÒ—eZdZdZdZdZdZdZeezZdddddddddeddd f d „Z d „Z d „Z d „Z d„Z d„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd „ZdS)!rzBImplements the standard rules for accepting and returning cookies.r%rr€r NTF)ÚhttpsÚwsscó —||_||_||_||_||_||_| |_| |_| |_| |_ | |_ |�t|¦«|_ nd|_ |�t|¦«}||_ dS)zAConstructor arguments should be passed as keyword arguments only.NrH)ÚnetscapeÚrfc2965Úrfc2109_as_netscapeÚ hide_cookie2Ú strict_domainÚstrict_rfc2965_unverifiableÚstrict_ns_unverifiableÚstrict_ns_domainÚstrict_ns_set_initial_dollarÚstrict_ns_set_pathÚsecure_protocolsÚtupleÚ_blocked_domainsÚ_allowed_domains)r"Úblocked_domainsÚallowed_domainsrWrXrYrZr[r\r]r^r_r`ras rr$zDefaultCookiePolicy.__init__tsœ€ð!ˆŒ ؈Œ Ø#6ˆÔ Ø(ˆÔØ*ˆÔØ+FˆÔ(Ø&<ˆÔ#Ø 0ˆÔØ,HˆÔ)Ø"4ˆÔØ 0ˆÔà Ð &Ý$)¨/Ñ$:Ô$:ˆDÔ !Ð !à$&ˆDÔ !à Ð &Ý# OÑ4Ô4ˆOØ /ˆÔÐÐrcó—|jS)z4Return the sequence of blocked domains (as a tuple).)rc©r"s rrez#DefaultCookiePolicy.blocked_domains—ó €àÔ$Ð$rcó.—t|¦«|_dS)z$Set the sequence of blocked domains.N)rbrc)r"res rÚset_blocked_domainsz'DefaultCookiePolicy.set_blocked_domainsšs€å % oÑ 6Ô 6ˆÔÐÐrcó@—|jD]}t||¦«rdSŒdSr0)rcrë)r"rÅÚblocked_domains rÚ is_blockedzDefaultCookiePolicy.is_blockedžs7€Ø"Ô3ð ð ˆNÝ  ¨Ñ8Ô8ð Ø�t�tð àˆurcó—|jS)z=Return None, or the sequence of allowed domains (as a tuple).)rdrhs rrfz#DefaultCookiePolicy.allowed_domains¤rircó6—|�t|¦«}||_dS)z-Set the sequence of allowed domains, or None.N)rbrd)r"rfs rÚset_allowed_domainsz'DefaultCookiePolicy.set_allowed_domains§s#€à Ð &Ý# OÑ4Ô4ˆOØ /ˆÔÐÐrcóR—|j€dS|jD]}t||¦«rdSŒdS)NFT)rdrë)r"rÅÚallowed_domains rÚis_not_allowedz"DefaultCookiePolicy.is_not_allowed­sE€Ø Ô Ð (Ø�5Ø"Ô3ð ð ˆNÝ  ¨Ñ8Ô8ð Ø�u�uð àˆtrcó —td|j|j¦«|j€J‚dD]&}d|z}t||¦«}|||¦«sdSŒ'dS)zØ If you override .set_ok(), be sure to call this method. If it returns false, so should your subclass (assuming your subclass wants to be more strict about which cookies to accept). ú - checking cookie %s=%sN)rÈÚ verifiabilityrªrÆrÅrÉÚset_ok_FT©rrªr«r<©r"rIrôÚnÚfn_nameÚfns rrJzDefaultCookiePolicy.set_okµsw€õ Ð)¨6¬;¸¼ ÑEÔEÐEàŒ{Ð&Ð&Ð&àMð ð ˆAØ ‘kˆGݘ˜wÑ'Ô'ˆBØ�2�f˜gÑ&Ô&ð Ø�u�uð ðˆtrcóÚ—|j€td|j|j¦«dS|jdkr|jstd¦«dS|jdkr|jstd¦«dSdS)Nz0 Set-Cookie2 without version attribute (%s=%s)Fr ú$ RFC 2965 cookies are switched offú$ Netscape cookies are switched offT)rÈrrªr«rXrWrHs rÚset_ok_versionz"DefaultCookiePolicy.set_ok_versionÈs„€Ø Œ>Ð !õ ÐEØ”; ¤ ñ .ô .ð .à�5Ø Œ>˜AÒ Ð  d¤lÐ Ý Ð9Ñ :Ô :Ð :Ø�5Ø Œ^˜qÒ Ð ¨¬Ð Ý Ð9Ñ :Ô :Ð :Ø�5؈trcó¾—|jrUt|¦«rF|jdkr|jrt d¦«dS|jdkr|jrt d¦«dSdS©Nr z> third-party RFC 2965 cookie during unverifiable transactionFz> third-party Netscape cookie during unverifiable transactionT©Ú unverifiablerrÈr\rr]rHs rÚset_ok_verifiabilityz(DefaultCookiePolicy.set_ok_verifiability×sƒ€Ø Ô ð ¥N°7Ñ$;Ô$;ð ØŒ~ Ò!Ð! dÔ&FÐ!Ýð8ñ9ô9ð9à�uØ” 1Ò$Ð$¨Ô)DÐ$Ýð8ñ9ô9ð9à�u؈trcóŒ—|jdkr8|jr1|j d¦«rt d|j¦«dSdS)Nr ú$z' illegal name (starts with '$'): '%s'FT)rÈr_rªr£rrHs rÚ set_ok_namezDefaultCookiePolicy.set_ok_nameãsN€ð ŒN˜aÒ Ð  DÔ$EÐ Ø ŒK× "Ò " 3Ñ 'Ô 'ð å Ð<¸f¼kÑ JÔ JÐ JØ�5؈trcóÒ—|jr_t|¦«}|jdks|jdkr:|jr3| |j|¦«st d|j|¦«dSdS)Nr z7 path attribute %s is not a prefix of request path %sFT)rrrÈr`rRrÆr)r"rIrôÚreq_paths rÚ set_ok_pathzDefaultCookiePolicy.set_ok_pathìs~€Ø Ô ð Ý# GÑ,Ô,ˆHØ” !Ò#Ð#Ø”. AÒ%Ð%¨$Ô*AÐ%Ø×'Ò'¨¬ °WÑ=Ô=ð&åð!Ø"(¤+¨xñ9ô9ð9à�u؈trcó|—| |j¦«rtd|j¦«dS| |j¦«rtd|j¦«dS|j�rQt |¦«\}}|j}|jr | d¦«dkr‡| d¦«}| dd|¦«}|dkrU||dzd…}||dz|…} |   ¦«dvr%t|¦«dkrtd |¦«dS|  d¦«r |dd…} n|} |   d¦«dk} | s'|  d ¦«std |¦«dS|jdkrm|  |¦«sX|  | ›d �¦«s@|  d¦«s+d|z  |¦«std ||¦«dS|jdks|j|jzr#t#||¦«std ||¦«dS|jdks|j|jzr^|dt|¦« …} |   d¦«dkr-t& |¦«std| |¦«dSdS)Nú" domain %s is in user block-listFú& domain %s is not in user allow-listrÝrr r%)ÚcoÚacÚcomÚeduÚorgÚnetÚgovÚmilrgÚaeroÚbizÚcatÚcoopÚinfoÚjobsÚmobiÚmuseumrªÚproÚtravelÚeuz& country-code second level domain %srùz/ non-local domain %s contains no embedded dotzO effective request-host %s (even with added initial dot) does not end with %sz5 effective request-host %s does not domain-match %sz. host prefix %s for domain %s contains a dotT)rnrÅrrtrrýr[ÚcountrârIÚlenr£rúrÀrÈr^ÚDomainRFC2965MatchræÚDomainStrictNoDotsrßrf) r"rIrôrürûrÅråÚjÚtldÚsldÚundotted_domainÚ embedded_dotsÚ host_prefixs rÚ set_ok_domainz!DefaultCookiePolicy.set_ok_domain÷s€Ø �?Š?˜6œ=Ñ )Ô )ð Ý Ð7¸¼Ñ GÔ GÐ GØ�5Ø × Ò ˜vœ}Ñ -Ô -ð Ý Ð;¸V¼]Ñ KÔ KÐ KØ�5Ø Ô "ñ2 !Ý-¨gÑ6Ô6‰NˆH�dØ”]ˆFØÔ!ð % v§|¢|°CÑ'8Ô'8¸AÒ'=Ð'=ð—L’L Ñ%Ô%�Ø—L’L  a¨Ñ+Ô+�ؘ’6�6Ø   1¡  œ,�CØ   1¡ Q œ-�CØ—y’y‘{”{ð''ð'ð'õ,/¨s©8¬8°qª=¨=åÐGÈÑPÔPÐPØ$˜uØ× Ò  Ñ%Ô%ð )Ø"(¨¨¨¤*��à"(�Ø,×1Ò1°#Ñ6Ô6¸!Ò;ˆMØ ð ¨¯ª°xÑ)@Ô)@ð ÝÐHØñôðà�uØŒ~ Ò"Ð"ØŸš vÑ.Ô.ð!ØŸš¨/Ð'AÐ'AÐ'AÑBÔBð!àŸš¨Ñ-Ô-ð!ð˜d™(×,Ò,¨VÑ4Ô4ð!õð?à ñ)ô)ð)ð!˜5Ø” Ò"Ð"ØÔ&¨Ô)@Ñ@ð#å# D¨&Ñ1Ô1ð!Ýð Ø!% vñ/ô/ð/à ˜5Ø” Ò"Ð"ØÔ&¨Ô)@Ñ@ð#à& }­¨V©¬¨  }Ô5� Ø×$Ò$ SÑ)Ô)¨QÒ.Ð.ÝŸš xÑ0Ô0ð/åÐKØ&¨ñ0ô0ð0à ˜5؈trcó:—|jr“t|¦«}|€d}nt|¦«}|j d¦«D]=} t |¦«n"#t $rtd|¦«YdSwxYw||krnŒ>td||j¦«dSdS)NÚ80ršz bad port %s (not numeric)Fz$ request port (%s) not found in %sT)rrrœrÉrÎrgrsr©r"rIrôÚreq_portr5s rÚ set_ok_portzDefaultCookiePolicy.set_ok_port3sÕ€Ø Ô ð Ý# GÑ,Ô,ˆHØÐØ��å˜x™=œ=�Ø”[×&Ò& sÑ+Ô+ð ð �ð!ݘ‘F”F�F�FøÝ!ð!ð!ð!ÝÐ9¸1Ñ=Ô=Ð=Ø ˜5˜5˜5ð!øøøð˜’=�=Ø�Eð!õÐ=Ø ¤ñ.ô.ð.à�u؈tsÁAÁA7Á6A7cóŽ—td|j|j¦«dD]&}d|z}t||¦«}|||¦«sdSŒ'dS)zÛ If you override .return_ok(), be sure to call this method. If it returns false, so should your subclass (assuming your subclass wants to be more strict about which cookies to return). rv)rÈrwrÇrÄrÉrÅÚ return_ok_FTryrzs rrLzDefaultCookiePolicy.return_okHsg€õ Ð)¨6¬;¸¼ ÑEÔEÐEàRð ð ˆAØ" 1‘nˆGݘ˜wÑ'Ô'ˆBØ�2�f˜gÑ&Ô&ð Ø�u�uð àˆtrcó’—|jdkr|jstd¦«dS|jdkr|jstd¦«dSdS)Nr rFr€T)rÈrXrrWrHs rÚreturn_ok_versionz%DefaultCookiePolicy.return_ok_versionZsW€Ø Œ>˜AÒ Ð  d¤lÐ Ý Ð9Ñ :Ô :Ð :Ø�5Ø Œ^˜qÒ Ð ¨¬Ð Ý Ð9Ñ :Ô :Ð :Ø�5؈trcó¾—|jrUt|¦«rF|jdkr|jrt d¦«dS|jdkr|jrt d¦«dSdSrƒr„rHs rÚreturn_ok_verifiabilityz+DefaultCookiePolicy.return_ok_verifiabilitycsƒ€Ø Ô ð ¥N°7Ñ$;Ô$;ð ØŒ~ Ò!Ð! dÔ&FÐ!Ýð%ñ&ô&ð&à�uØ” 1Ò$Ð$¨Ô)DÐ$Ýð%ñ&ô&ð&à�u؈trcóR—|jr|j|jvrtd¦«dSdS)Nz( secure cookie with non-secure requestFT)rÇÚtyperarrHs rÚreturn_ok_securez$DefaultCookiePolicy.return_ok_secureos4€Ø Œ=ð ˜Wœ\°Ô1FÐFÐFÝ Ð=Ñ >Ô >Ð >Ø�5؈trcó\—| |j¦«rtd¦«dSdS)Nz cookie expiredFT)r2Ú_nowrrHs rÚreturn_ok_expiresz%DefaultCookiePolicy.return_ok_expiresus3€Ø × Ò ˜TœYÑ 'Ô 'ð Ý Ð&Ñ 'Ô 'Ð 'Ø�5؈trcó´—|jrPt|¦«}|€d}|j d¦«D] }||krnŒ td||j¦«dSdS)Nr¯ršz0 request port %s does not match cookie port %sFT)rÉrrÎrr°s rÚreturn_ok_portz"DefaultCookiePolicy.return_ok_port{s~€Ø Œ;ð Ý# GÑ,Ô,ˆHØÐØ�Ø”[×&Ò& sÑ+Ô+ð ð �ؘ’=�=Ø�Eð!õÐIØ ¤ñ.ô.ð.à�u؈trcó®—t|¦«\}}|j}|r| d¦«sd|z}n|}|jdkr-|j|jzr|js||krtd¦«dS|jdkr#t||¦«std||¦«dS|jdkr+d|z  |¦«std||¦«dSdS)NrÝr zQ cookie with unspecified domain does not string-compare equal to request domainFzQ effective request-host name %s does not domain-match RFC 2965 cookie domain %sz; request-host %s does not match Netscape cookie domain %sT) rýrÅr£rÈr^ÚDomainStrictNonDomainrrrærÀ)r"rIrôrürûrÅÚ dotdomains rÚreturn_ok_domainz$DefaultCookiePolicy.return_ok_domain‰s €Ý)¨'Ñ2Ô2‰ˆ�$Ø”ˆà ð ˜&×+Ò+¨CÑ0Ô0ð Ø˜f™ ˆIˆIàˆIð ŒN˜aÒ Ð Ø Ô " TÔ%?Ñ ?ð àÔ'ð à,2°dªN¨NÝ ð-ñ .ô .ð .à�5à Œ>˜AÒ Ð ¥l°4¸Ñ&@Ô&@Ð Ý ð/Ø04°fñ >ô >ð >à�5Ø Œ>˜QÒ Ð ¨¨D©×':Ò':¸9Ñ'EÔ'EÐ Ý ðØ! 6ñ +ô +ð +à�5؈trcóÄ—t|¦«\}}| d¦«sd|z}| d¦«sd|z}|r| d¦«sd|z}n|}| |¦«s| |¦«sdS| |¦«rt d|¦«dS| |¦«rt d|¦«dSdS)NrÝFrŽr�T)rýr£rÀrnrrt)r"rÅrôrürûrÃs rrOz$DefaultCookiePolicy.domain_return_ok¤s €õ*¨'Ñ2Ô2‰ˆ�$Ø×"Ò" 3Ñ'Ô'ð $ؘ8‘|ˆHØ�Š˜sÑ#Ô#ð Ø�t‘8ˆDØ ð ˜&×+Ò+¨CÑ0Ô0ð Ø˜f™ ˆIˆIàˆIØ×!Ò! )Ñ,Ô,ð °· ² ¸iÑ0HÔ0Hð ð�5à �?Š?˜6Ñ "Ô "ð Ý Ð7¸Ñ @Ô @Ð @Ø�5Ø × Ò ˜vÑ &Ô &ð Ý Ð;¸VÑ DÔ DÐ DØ�5àˆtrcó—td|¦«t|¦«}t|¦«}||krdS| |¦«r(| d¦«s|||dz…dkrdStd||¦«dS)Nz- checking cookie path=%sTrÿr%z %s does not path-match %sF)rrr¤r£rÀ)r"rÆrôr‹Úpathlens rrRz"DefaultCookiePolicy.path_return_ok¾s›€ÝÐ*¨DÑ1Ô1Ð1Ý Ñ(Ô(ˆÝ�d‘)”)ˆØ �tÒ Ð Ø�4Ø×!Ò! $Ñ'Ô'ð Ø�}Š}˜SÑ!Ô!ð Ø%-¨g°g¸a±iÐ.?Ô%@ÀCÒ%GÐ%GØ�4åÐ,¨h¸Ñ=Ô=Ð=؈ur) r?rArBrCr¦rÂr¥Ú DomainLiberalÚ DomainStrictr$rerkrnrfrqrtrJr�r†r‰rŒr­r²rLr¶r¸r»r¾rÀrÄrOrRrHrrrrjsÀ€€€€ØLÐLàÐØÐØÐà€MØ%Ð&;Ñ;€Lð"&°tبØ%)Ø#Ø$Ø-1Ø(-Ø"/Ø.3Ø$)Ø"2ð!0ð!0ð!0ð!0ðF%ð%ð%ð7ð7ð7ðððð %ð%ð%ð0ð0ð0ð ðððððð& ð ð ð ð ð ðððð ð ð ð:ð:ð:ðxððð*ððð$ððð ð ð ðððð ððð ð ð ðððð6ððð4 ð ð ð ð rrc#óÂK—t| ¦«¦«D]:}d} |jd}t|¦«Ed{V—†n#t$rYnwxYw|s|V—Œ;dS)z)Iterates over nested mapping, depth-firstFTN)ÚlistÚvaluesÚitemsÚ deepvaluesÚAttributeError)ÚmappingÚobjs rrÎrÎËs èè€å�G—N’NÑ$Ô$Ñ%Ô%ð ð ˆØˆð 'Ø ŒIˆIðˆGÝ! #‘”Ð &Ð &Ð &Ð &Ð &Ð &Ð &Ð &øõ ð ð ð Ø ˆDð øøøð ð ØˆIˆIˆIøð ð s©AÁ AÁAcó—eZdZdS)ÚAbsentN©r?rArBrHrrrÓrÓÜó€€€€€€€rrÓcó`—eZdZdZejd¦«Zejd¦«Zejd¦«Zejd¦«Z ejd¦«Z ejdej ¦«Z dd „Z d „Zd „Zd „Zd „Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zdd„Zd„Zd„Zd„Zd„Zd„Z d„Z!dS) rz”Collection of HTTP cookies. You may not need to know about this class: try urllib.request.build_opener(HTTPCookieProcessor).open(url). z\Wr¯z\.?[^.]*z[^.]*z^\.+z^\#LWP-Cookies-(\d+\.\d+)Ncór—|€t¦«}||_tj¦«|_i|_dSr&)rÚ_policyÚ _threadingÚRLockÚ _cookies_lockÚ_cookies©r"Úpolicys rr$zCookieJar.__init__ís5€Ø ˆ>Ý(Ñ*Ô*ˆF؈Œ å'Ô-Ñ/Ô/ˆÔ؈Œ ˆ ˆ rcó—||_dSr&)rØrÝs rÚ set_policyzCookieJar.set_policyõs €ØˆŒ ˆ ˆ rcóÀ—g}|j ||¦«sgStd|¦«|j|}| ¦«D]Œ}|j ||¦«sŒ||}| ¦«D]Q}|j ||¦«std¦«Œ-td¦«| |¦«ŒRŒ�|S)Nz!Checking %s for cookies to returnz not returning cookiez it's a match) rØrOrrÜÚkeysrRrÌrLr¢)r"rÅrôÚcookiesÚcookies_by_pathrÆÚcookies_by_namerIs rÚ_cookies_for_domainzCookieJar._cookies_for_domainøsü€ØˆØŒ|×,Ò,¨V°WÑ=Ô=ð ØˆIÝÐ2°FÑ;Ô;Ð;Øœ-¨Ô/ˆØ#×(Ò(Ñ*Ô*ð 'ð 'ˆDØ”<×.Ò.¨t°WÑ=Ô=ð ØØ-¨dÔ3ˆOØ)×0Ò0Ñ2Ô2ð 'ð '�Ø”|×-Ò-¨f°gÑ>Ô>ðÝÐ4Ñ5Ô5Ð5ØÝÐ(Ñ)Ô)Ð)Ø—’˜vÑ&Ô&Ð&Ð&ð  'ð ˆrcó”—g}|j ¦«D]+}| | ||¦«¦«Œ,|S)z2Return a list of cookies to be returned to server.)rÜrâÚextendræ)r"rôrãrÅs rÚ_cookies_for_requestzCookieJar._cookies_for_request sP€àˆØ”m×(Ò(Ñ*Ô*ð Fð FˆFØ �NŠN˜4×3Ò3°F¸GÑDÔDÑ EÔ EÐ EÐ E؈rcó>—| d„d¬¦«d}g}|D�]|}|j}|s d}|dkr| d|z¦«|j�F|j |j¦«r'|dkr!|j d|j¦«}n|j}|j€| |j¦«n| |j›d |›�¦«|dkrµ|j r| d |j z¦«|j   d ¦«rE|j }|j s|  d ¦«r |d d…}| d |z¦«|j�+d}|jr |d|jzz}| |¦«�Œ~|S)zÜReturn a list of cookie-attributes to be returned to server. like ['foo="bar"; $Path="/"', ...] The $Version attribute is also added when appropriate (currently only once per request). có*—t|j¦«Sr&)r¤rÆ)Úas rúz)CookieJar._cookie_attrs..s€¥3 q¤v¡;¤;€rT)r×ÚreverseFr z $Version=%sNr±r²z $Path="%s"rÝr%z $Domain="%s"z$Portz="%s")ÚsortrÈr¢r«Ú non_word_rerfÚquote_rer‰rªrrÆrÅr£rrÉr) r"rãrÔÚattrsrIrÈr«rÅr5s rÚ _cookie_attrszCookieJar._cookie_attrssÌ€ð � Š Ð.Ð.¸ˆ Ñ=Ô=Ð=àˆ àˆØð( $ñ( $ˆFð”nˆGØð :Ø"� ؘQ’;�;Ø—L’L °Ñ!8Ñ9Ô9Ð9ð ”Ð)ØÔ ×'Ò'¨¬ Ñ5Ô5ð*Ø:AÀAº+¸+Øœ ×)Ò)¨'°6´<Ñ@Ô@��àœ �ðŒ|Ð#Ø— ’ ˜Vœ[Ñ)Ô)Ð)Ð)à— ’ ¨¬ ¨ ¨ °U°UÐ;Ñ<Ô<Ð<ؘŠ{ˆ{ØÔ(ð=Ø—L’L °´ Ñ!;Ñ<Ô<Ð<Ø”=×+Ò+¨CÑ0Ô0ð:Ø#œ]�FØ"Ô5ð,Ø×)Ò)¨#Ñ.Ô.ð,à!'¨¨¨¤˜Ø—L’L °&Ñ!8Ñ9Ô9Ð9Ø”;Ð*Ø�AØÔ,ð8Ø ¨6¬;Ñ!6Ñ7˜Ø—L’L ‘O”O�Oùàˆ rcóЗtd¦«|j ¦« tt j¦«¦«x|j_|_| |¦«}| |¦«}|r>|  d¦«s)|  dd  |¦«¦«|jj rI|jj s=|  d¦«s(|D]%}|jdkr|  dd¦«nŒ&|j ¦«n#|j ¦«wxYw| ¦«dS)zžAdd correct Cookie: header to request (urllib.request.Request object). The Cookie2 header is also added unless policy.hide_cookie2 is true. Úadd_cookie_headerrr³ÚCookie2r%z $Version="1"N)rrÛÚacquirergrtrØr½réróÚ has_headerÚadd_unredirected_headerr¶rXrZrÈÚreleaseÚclear_expired_cookies)r"rôrãròrIs rrõzCookieJar.add_cookie_headerLss€õ Ð"Ñ#Ô#Ð#Ø Ô×"Ò"Ñ$Ô$Ð$ð )å,/µ´ ± ´ Ñ,<Ô,<Ð <ˆDŒLÔ  ¤ à×/Ò/°Ñ8Ô8ˆGà×&Ò& wÑ/Ô/ˆEØð 4Ø×)Ò)¨(Ñ3Ô3ð4Ø×3Ò3Ø  $§)¢)¨EÑ"2Ô"2ñ4ô4ð4ð” Ô$ð ¨T¬\Ô-Fð Ø×&Ò& yÑ1Ô1ð à%ðð�FØ”~¨Ò*Ð*Ø×7Ò7¸ À>ÑRÔRÐRؘð+ð Ô × &Ò &Ñ (Ô (Ð (Ð (øˆDÔ × &Ò &Ñ (Ô (Ð (Ð (øøøà ×"Ò"Ñ$Ô$Ð$Ð$Ð$s ªC0D4Ä4Ecóv—g}d}d}|D�].}|d\}}d}d} i} i} |dd…D]ð\} } |  ¦«}||vs||vr|} | |vr| €d} | | vrŒ0| dkr)| €td ¦«d} n¦|  ¦«} | d kr|rŒh| €td ¦«Œz| d krAd} t| ¦«} n"#t$rtd ¦«d} Yn@wxYwd } |j| z} | |vs| |vr"| €| dvrtd| z¦«d} n | | | <Œë| | | <Œñ| r�Œ| ||| | f¦«�Œ0|S)aReturn list of tuples containing normalised cookie information. attrs_set is the list of lists of key,value pairs extracted from the Set-Cookie or Set-Cookie2 headers. Tuples are name, value, standard, rest, where name and value are the cookie name and value, standard is a dictionary containing the standard cookie-attributes (discard, secure, version, expires or max-age, domain, path and port) and rest is a dictionary containing the rest of the cookie-attributes. )rrÇ)rÈrÄrÊrÅrÆrÉrÚ commenturlr Fr%NTrÅz% missing value for domain attributerÄzM missing or invalid value for expires attribute: treating as session cookierÊz? missing or invalid (non-numeric) value for max-age attribute)rÉrrýz! missing value for %s attribute)rIrrgrsr½r¢)r"Ú attrs_setÚ cookie_tuplesÚ boolean_attrsÚ value_attrsÚ cookie_attrsrªr«Ú max_age_setÚ bad_cookieÚstandardr#rºr»rÚs rÚ_normalized_cookie_tuplesz#CookieJar._normalized_cookie_tuplesms€ðˆ à+ˆ ð0ˆ ð &ðH @ñH @ˆLØ& qœ/‰KˆD�%ð ˆKàˆJàˆH؈DØ$ Q R RÔ(ð2 ð2 ‘��1Ø—W’W‘Y”Y�à˜Ð$Ð$¨¨mÐ(;Ð(;Ø�Aؘ Ð%Ð%¨!¨)ð�Aؘ�=�=àØ˜’=�=Ø�yÝÐFÑGÔGÐGØ%)˜ Ø˜àŸš™ œ �Aؘ ’>�>Ø"ð!à Ø�yÝð FñGôGðGà Ø˜ ’>�>Ø"&�KðÝ ™FœF˜˜øÝ%ðððÝð 2ñ3ô3ð3à%)˜ ؘ˜ð øøøð"�AØœ  A™ �AؘÐ$Ð$¨!¨}Ð*<Ð*<ؘ ØÐ!BÐBÐBÝÐBÀQÑFÑGÔGÐGØ%)˜ ؘØ"#�H˜Q‘K�Kà�D˜‘G�Gàð Ùà × Ò  $¨¨x¸Ð!>Ñ ?Ô ?Ð ?Ñ ?àÐsÂ,B<Â<CÃCcó2—|\}}}}| dt¦«}| dt¦«}| dt¦«} | dt¦«} | dd¦«} | �" t| ¦«} n#t$rYdSwxYw| dd¦«} | dd¦«} | d d¦«}| d d¦«}|tur|d krd }t |¦«}n_d}t |¦«}| d ¦«}|dkr| dkr |d|…}n |d|dz…}t|¦«dkrd }|tu}d}|r"t|  d¦«¦«}|turt|¦«\}}|}n|  d¦«sd|z}d}| tur+| €t|¦«} nd }tj dd | ¦«} nd} | turd} d } nH| |jkr= | |||¦«n#t $rYnwxYwt#d|||¦«dSt%| ||| ||||||| | | |||¦«S)NrÅrÆrÉrÄrÈrÇFrrrýr‚Trÿr¿r r%rÝz\s+z2Expiring cookie, domain='%s', path='%s', name='%s')r*rÓrgrsrrrâr¤Úboolr£rýrr¤r‰r½ÚclearÚKeyErrorrr)r"Útuprôrªr«rr#rÅrÆrÉrÄrÈrÇrrrrrårrrürûrs rÚ_cookie_from_cookie_tuplez#CookieJar._cookie_from_cookie_tupleÎs €ð'*Ñ#ˆˆe�X˜tà—’˜h­Ñ/Ô/ˆØ�|Š|˜F¥FÑ+Ô+ˆØ�|Š|˜F¥FÑ+Ô+ˆØ—,’,˜y­&Ñ1Ô1ˆð—,’,˜y¨$Ñ/Ô/ˆØ Ð ð ݘg™,œ,��øÝð ð ð Ø�t�tð øøøà—’˜h¨Ñ.Ô.ˆà—,’,˜y¨%Ñ0Ô0ˆØ—,’,˜y¨$Ñ/Ô/ˆØ—l’l <°Ñ6Ô6ˆ ð •vÐ Ð  $¨"¢* *Ø!ˆNݘtÑ$Ô$ˆDˆDà"ˆNÝ Ñ(Ô(ˆDØ— ’ ˜3‘”ˆAØ�BŠwˆwؘa’<�<à   œ8�D�Dà   1¡ œ:�DÝ�4‰yŒy˜AŠ~ˆ~ c˜tð"­Ð/Ðà"ÐØ ð >Ý!% f×&7Ò&7¸Ñ&<Ô&<Ñ!=Ô!=Ð Ø •VÐ Ð Ý-¨gÑ6Ô6‰NˆH�d؈FˆFØ×"Ò" 3Ñ'Ô'ð Ø˜‘ZˆFðˆØ •vРР؈|õ$ GÑ,Ô,��à!%�Ý”v˜f b¨$Ñ/Ô/��ðˆDð •fРР؈G؈GˆGØ ˜œ Ò !Ð !ð Ø— ’ ˜6 4¨Ñ.Ô.Ð.Ð.øÝð ð ð Ø�ð øøøå ÐGؘ4 ñ 'ô 'ð 'à�4å�gؘEؘNØÐ.Ð0BؘNØØØØØ!Øñ ô ð s$ B B+Â*B+È?IÉ I$É#I$có˜—| |¦«}g}|D]/}| ||¦«}|r| |¦«Œ0|Sr&)rr r¢)r"rþrôrÿrãr rIs rÚ_cookies_from_attrs_setz!CookieJar._cookies_from_attrs_set*s[€Ø×6Ò6°yÑAÔAˆ àˆØ ð .ð .ˆCØ×3Ò3°C¸ÑAÔAˆFØÐ -�w—~’~ fÑ-Ô-Ð-øØˆrcó�—t|jdd¦«}|€ |jj }|D]}|jdkrd|_|rd|_ŒdS)NrYr%Tr )r<rØrXrÈr)r"rãÚ rfc2109_as_nsrIs rÚ_process_rfc2109_cookiesz"CookieJar._process_rfc2109_cookies3sh€Ý ¤ Ð.CÀTÑJÔJˆ Ø Ð Ø $¤ Ô 4Ð4ˆMØð 'ð 'ˆFØŒ~ Ò"Ð"Ø!%�”Ø ð'ð&'�F”Nøð  'ð 'rcó—| ¦«}| dg¦«}| dg¦«}ttj¦«¦«x|j_|_|jj}|jj}|s|r |s|r|s|r|s|sgS | t|¦«|¦«}n #t$rt¦«g}YnwxYw|r¨|r¦ | t|¦«|¦«} n #t$rt¦«g} YnwxYw|  | ¦«|r3i} |D]} d| | j| j| jf<Œ| fd„} t#| | ¦«} | r| | ¦«|S)zAReturn sequence of Cookie objects extracted from response object.z Set-Cookie2z Set-CookieNcó2—|j|j|jf}||vSr&)rÅrÆrª)Ú ns_cookieÚlookupr×s rÚno_matching_rfc2965z3CookieJar.make_cookies..no_matching_rfc2965ls €Ø#Ô*¨I¬N¸I¼NÐJ�CØ fÐ,Ð,r)rœÚget_allrgrtrØr½rXrWrr®Ú Exceptionr"rÛrrÅrÆrªÚfilterrè) r"Úresponserôr¸Ú rfc2965_hdrsÚns_hdrsrXrWrãÚ ns_cookiesrrIrs rÚ make_cookieszCookieJar.make_cookies?s€ð—-’-‘/”/ˆØ—’ }°bÑ9Ô9ˆ Ø—/’/ ,°Ñ3Ô3ˆÝ(+­D¬I©K¬KÑ(8Ô(8Ð8ˆŒ Ô˜DœIà”,Ô&ˆØ”<Ô(ˆàð  gð Øð Ø!(ð àð à&.ð ðð ð#*ð ðˆIð Ø×2Ò2Ý" <Ñ0Ô0°'ñ;ô;ˆGˆGøåð ð ð Ý %Ñ 'Ô 'Ð '؈GˆGˆGð øøøð ð +�xð +ð à!×9Ò9Ý$ WÑ-Ô-¨wñ8ô8� � øåð ð ð Ý)Ñ+Ô+Ð+Ø� � � ð øøøð × )Ò )¨*Ñ 5Ô 5Ð 5ðð EØ�Ø%ðMðM�FØHL�F˜FœM¨6¬;¸¼ ÐDÑEÐEà:@ð-ð-ð-ð-õ$Ð$7¸ÑDÔD� àð +Ø—’˜zÑ*Ô*Ð*àˆs$Â#CÃCÃCÃ&#D Ä D'Ä&D'cój—|j ¦« ttj¦«¦«x|j_|_|j ||¦«r| |¦«|j ¦«dS#|j ¦«wxYw)z-Set a cookie if policy says it's OK to do so.N) rÛr÷rgrtrØr½rJÚ set_cookierúrHs rÚset_cookie_if_okzCookieJar.set_cookie_if_okvsŸ€à Ô×"Ò"Ñ$Ô$Ð$ð )Ý,/µ´ ± ´ Ñ,<Ô,<Ð <ˆDŒLÔ  ¤ àŒ|×"Ò" 6¨7Ñ3Ô3ð (Ø—’ Ñ'Ô'Ð'ð Ô × &Ò &Ñ (Ô (Ð (Ð (Ð (øˆDÔ × &Ò &Ñ (Ô (Ð (Ð (øøøs ›A!BÂB2cóJ—|j}|j ¦« |j|vr i||j<||j}|j|vr i||j<||j}|||j<|j ¦«dS#|j ¦«wxYw)z?Set a cookie, without checking whether or not it should be set.N)rÜrÛr÷rÅrÆrªrú)r"rIÚcÚc2Úc3s rr zCookieJar.set_cookieƒsª€à ŒMˆØ Ô×"Ò"Ñ$Ô$Ð$ð )ØŒ} AÐ%Ð%¸" q¨¬Ñ'7Ø�6”=Ô!ˆBØŒ{ "Ð$Ð$¸ b¨¬¡oØ�F”K”ˆBØ$ˆBˆvŒ{‰Oà Ô × &Ò &Ñ (Ô (Ð (Ð (Ð (øˆDÔ × &Ò &Ñ (Ô (Ð (Ð (øøøs ¢A BÂB"có —td| ¦«¦«|j ¦« | ||¦«D]B}|j ||¦«r%td|¦«| |¦«ŒC |j ¦«dS#|j ¦«wxYw)zAExtract cookies from response, where allowable given the request.zextract_cookies: %sz setting cookie: %sN) rrœrÛr÷rrØrJr rú)r"rrôrIs rÚextract_cookieszCookieJar.extract_cookies�sÏ€åÐ$ h§m¢m¡o¤oÑ6Ô6Ð6Ø Ô×"Ò"Ñ$Ô$Ð$ð )Ø×+Ò+¨H°gÑ>Ô>ð ,ð ,�Ø”<×&Ò& v¨wÑ7Ô7ð,ÝÐ0°&Ñ9Ô9Ð9Ø—O’O FÑ+Ô+Ð+øð ,ð Ô × &Ò &Ñ (Ô (Ð (Ð (Ð (øˆDÔ × &Ò &Ñ (Ô (Ð (Ð (øøøs ½AB2Â2C cóÈ—|�)|�|€td¦«‚|j|||=dS|�!|€td¦«‚|j||=dS|� |j|=dSi|_dS)aÑClear some cookies. Invoking this method without arguments will clear all cookies. If given a single argument, only cookies belonging to that domain will be removed. If given two arguments, cookies belonging to the specified path within that domain are removed. If given three arguments, then the cookie with the specified name, path and domain is removed. Raises KeyError if no matching cookie exists. Nz8domain and path must be given to remove a cookie by namez.domain must be given to remove cookies by path)rsrÜ)r"rÅrÆrªs rr zCookieJar.clearœsž€ð Ð Ø� D LÝ ØNñPôPðPà” ˜fÔ% dÔ+¨DÐ1Ð1Ð1Ø Ð Øˆ~Ý ØDñFôFðFà” ˜fÔ% dÐ+Ð+Ð+Ø Ð Ø” ˜fÐ%Ð%Ð%àˆDŒMˆMˆMrcó—|j ¦« |D]/}|jr&| |j|j|j¦«Œ0 |j ¦«dS#|j ¦«wxYw)z»Discard all session cookies. Note that the .save() method won't save session cookies anyway, unless you ask otherwise by passing a true ignore_discard argument. N)rÛr÷rr rÅrÆrªrú)r"rIs rÚclear_session_cookieszCookieJar.clear_session_cookies·s•€ð Ô×"Ò"Ñ$Ô$Ð$ð )Øð Hð H�Ø”>ðHØ—J’J˜vœ}¨f¬k¸6¼;ÑGÔGÐGøð Hð Ô × &Ò &Ñ (Ô (Ð (Ð (Ð (øˆDÔ × &Ò &Ñ (Ô (Ð (Ð (øøøs ›2A)Á)BcóP—|j ¦« tj¦«}|D]=}| |¦«r&| |j|j|j¦«Œ> |j ¦«dS#|j ¦«wxYw)a”Discard all expired cookies. You probably don't need to call this method: expired cookies are never sent back to the server (provided you're using DefaultCookiePolicy), this method is called by CookieJar itself every so often, and the .save() method won't save expired cookies anyway (unless you ask otherwise by passing a true ignore_expires argument). N) rÛr÷rtr2r rÅrÆrªrú)r"r1rIs rrûzCookieJar.clear_expired_cookiesÆs¬€ð Ô×"Ò"Ñ$Ô$Ð$ð )Ý”)‘+”+ˆCØð Hð H�Ø×$Ò$ SÑ)Ô)ðHØ—J’J˜vœ}¨f¬k¸6¼;ÑGÔGÐGøð Hð Ô × &Ò &Ñ (Ô (Ð (Ð (Ð (øˆDÔ × &Ò &Ñ (Ô (Ð (Ð (øøøs ›AB  B%có*—t|j¦«Sr&)rÎrÜrhs rÚ__iter__zCookieJar.__iter__Ùs€Ý˜$œ-Ñ(Ô(Ð(rcó—d}|D]}|dz}Œ|S)z#Return number of contained cookies.r r%rH)r"rårIs rÚ__len__zCookieJar.__len__Üs!€à ˆØÐ%Ð%ˆF  A¡˜A˜A؈rcó —g}|D]$}| t|¦«¦«Œ%d|jj›dd |¦«›d�S©Nú<ú[r´z]>)r¢r=r>r?r¶©r"ÚrrIs rr@zCookieJar.__repr__âsS€Ø ˆØÐ2Ð2ˆF˜AŸHšH¥T¨&¡\¤\Ñ2Ô2Ð2Ð2Ð2Ø!œ^Ô4Ð4Ð4°d·i²iÀ±l´l°l°lÐCÐCrcó —g}|D]$}| t|¦«¦«Œ%d|jj›dd |¦«›d�Sr1)r¢rœr>r?r¶r4s rr8zCookieJar.__str__çsS€Ø ˆØÐ1Ð1ˆF˜AŸHšH¥S¨¡[¤[Ñ1Ô1Ð1Ð1Ð1Ø!œ^Ô4Ð4Ð4°d·i²iÀ±l´l°l°lÐCÐCrr&)NNN)"r?rArBrCr¤ÚcompilerðrñÚstrict_domain_reÚ domain_reÚdots_reÚASCIIÚmagic_rer$ràrærérórõrr rrrr!r r'r r*rûr-r/r@r8rHrrrrÞs䀀€€€ððð �"”*˜UÑ#Ô#€K؈rŒz˜+Ñ&Ô&€HØ!�r”z +Ñ.Ô.ÐØ�” ˜8Ñ$Ô$€I؈bŒj˜Ñ!Ô!€GàˆrŒzÐ6¸¼ÑAÔA€Hððððððððððð$ððð9ð9ð9ðv%ð%ð%ðB_ð_ð_ðBZðZðZðxððð 'ð 'ð 'ð5ð5ð5ðn )ð )ð )ð )ð )ð )ð )ð )ð )ððððð6 )ð )ð )ð)ð)ð)ð&)ð)ð)ðððð DðDðDð DðDðDðDðDrrcó—eZdZdS)rNrÔrHrrrrîrÕrrcó6—eZdZdZdd„Zd d„Zd d„Z d d„ZdS) rz6CookieJar that can be loaded from and saved to a file.NFcóž—t ||¦«|�tj|¦«}||_t |¦«|_dS)z} Cookies are NOT loaded from the named file until either the .load() or .revert() method is called. N)rr$ÚosÚfspathÚfilenamerÚ delayload)r"rBrCrÞs rr$zFileCookieJar.__init__ósG€õ ×Ò˜4 Ñ(Ô(Ð(Ø Ð Ý”y Ñ*Ô*ˆHØ ˆŒ ݘi™œˆŒˆˆrcó—t¦«‚)zSave cookies to a file.rF)r"rBÚignore_discardÚignore_expiress rÚsavezFileCookieJar.saveÿrMrcóЗ|€#|j�|j}ntt¦«‚t|¦«5}| ||||¦«ddd¦«dS#1swxYwYdS)zLoad cookies from a file.N)rBrsÚMISSING_FILENAME_TEXTÚopenÚ _really_load©r"rBrErFr s rÚloadzFileCookieJar.loadsÁ€à Ð ØŒ}Ð(°T´]¨(¨(Ý"Õ#8Ñ9Ô9Ð9å �(‰^Œ^ð K˜qØ × Ò ˜a ¨>¸>Ñ JÔ JÐ Jð Kð Kð Kñ Kô Kð Kð Kð Kð Kð Kð Kð Køøøð Kð Kð Kð Kð Kð KsµAÁAÁ"Acó’—|€#|j�|j}ntt¦«‚|j ¦« t j|j¦«}i|_ | |||¦«n#t$r ||_‚wxYw |j  ¦«dS#|j  ¦«wxYw)zÈClear all cookies and reload cookies from a saved file. Raises LoadError (or OSError) if reversion is not successful; the object's state will not be altered if this happens. N) rBrsrIrÛr÷r ÚdeepcopyrÜrMÚOSErrorrú)r"rBrErFÚ old_states rÚrevertzFileCookieJar.revert sÜ€ð Ð ØŒ}Ð(°T´]¨(¨(Ý"Õ#8Ñ9Ô9Ð9à Ô×"Ò"Ñ$Ô$Ð$ð )åœ  d¤mÑ4Ô4ˆI؈DŒMð Ø— ’ ˜( N°NÑCÔCÐCÐCøÝð ð ð Ø )�” Øð øøøðDð Ô × &Ò &Ñ (Ô (Ð (Ð (Ð (øˆDÔ × &Ò &Ñ (Ô (Ð (Ð (øøøs$Á B+Á!A9Á8B+Á9B  B+Â+C)NFN©NFF)r?rArBrCr$rGrMrRrHrrrrðsv€€€€€Ø@Ð@ð )ð )ð )ð )ð$ð$ð$ð$ðKðKðKðKð#Ø49ð)ð)ð)ð)ð)ð)rrcóÊ—|j|jfd|jfd|jfg}|j�| d|jf¦«|jr| d¦«|jr| d¦«|jr| d¦«|j r| d¦«|j r6| d tt|j ¦«¦«f¦«|j r| d ¦«|jr| d |jf¦«|jr| d |jf¦«t!|j ¦«¦«}|D]1}| |t'|j|¦«f¦«Œ2| d t'|j¦«f¦«t+|g¦«S)z�Return string representation of Cookie in the LWP cookie file format. Actually, the format is extended a bit -- see module docstring. rÆrÅNrÉ)Ú path_specN)Ú port_specN)Ú domain_dotN)rÇNrÄ)rNrrýrÈ)rªr«rÆrÅrÉr¢rrrrÇrÄrVr†rrrÚsortedr!rârœrÈr¼)rIrrârºs rÚlwp_cookie_strrY's×€ð Œ+�v”|Ð $Ø �&”+Ð Ø �F”MÐ "ð $€Að„{Р§¢¨&°&´+Ð)>Ñ ?Ô ?Ð ?Ø ÔÐ;˜aŸhšhÐ':Ñ;Ô;Ð;Ø ÔÐ;˜aŸhšhÐ':Ñ;Ô;Ð;Ø Ô Ð@ !§(¢(Ð+?Ñ"@Ô"@Ð"@Ø „}Ð0�a—h’hÐ/Ñ0Ô0Ð0Ø „~ðB�q—x’x Ý(­¨v¬~Ñ)>Ô)>Ñ?Ô?ð!AñBôBðBà „~Ð2�q—x’xÐ 1Ñ2Ô2Ð2Ø „~Ð<�q—x’x ¨F¬NÐ ;Ñ<Ô<Ð<Ø ÔÐG˜1Ÿ8š8 \°6Ô3EÐ$FÑGÔGÐGå �&”,×#Ò#Ñ%Ô%Ñ &Ô &€DØ ð,ð,ˆØ �Š�!•S˜œ aœÑ)Ô)Ð*Ñ+Ô+Ð+Ð+à‡H‚Hˆi�˜Vœ^Ñ,Ô,Ð -Ñ.Ô.Ð.å ˜a˜SÑ !Ô !Ð!rcó(—eZdZdZdd„Zd d„Zd„ZdS) ra[ The LWPCookieJar saves a sequence of "Set-Cookie3" lines. "Set-Cookie3" is the format used by the libwww-perl library, not known to be compatible with any browser, but which is easy to read and doesn't lose information about RFC 2965 cookies. Additional methods as_lwp_str(ignore_discard=True, ignore_expired=True) Tcóö—tj¦«}g}|D]I}|s|jrŒ |s| |¦«rŒ$| dt |¦«z¦«ŒJd |dgz¦«S)zžReturn cookies as a string of "\n"-separated "Set-Cookie3" headers. ignore_discard and ignore_expires: see docstring for FileCookieJar.save zSet-Cookie3: %sú r‚)rtrr2r¢rYr¶)r"rErFr1r5rIs rÚ as_lwp_strzLWPCookieJar.as_lwp_strPs”€õ Œi‰kŒkˆØ ˆØð Að AˆFØ!ð  f¤nð ØØ!ð  f×&7Ò&7¸Ñ&<Ô&<ð ØØ �HŠHÐ&­¸Ñ)?Ô)?Ñ?Ñ @Ô @Ð @Ð @Ø�yŠy˜˜B˜4™Ñ Ô Ð rNFcó˜—|€#|j�|j}ntt¦«‚tjtj|tjtjztjzd¦«d¦«5}|  d¦«|  |  ||¦«¦«ddd¦«dS#1swxYwYdS)Né€Úwz#LWP-Cookies-2.0 ) rBrsrIr@ÚfdopenrJÚO_CREATÚO_WRONLYÚO_TRUNCÚwriter]rLs rrGzLWPCookieJar.save`s €Ø Ð ØŒ}Ð(°T´]¨(¨(Ý"Õ#8Ñ9Ô9Ð9å ŒYÝ ŒG�H�bœj­2¬;Ñ6½¼ÑCÀUÑ KÔ KØ ñ ô ð Eðð �GŠGÐ(Ñ )Ô )Ð )Ø �GŠG�D—O’O N°NÑCÔCÑ DÔ DÐ Dð Eð Eð Eñ Eô Eð Eð Eð Eð Eð Eð Eð Eøøøð Eð Eð Eð Eð Eð EsÁ3?B?Â?CÃCcóÜ—| ¦«}|j |¦«sd|z}t|¦«‚t j¦«}d}d} d} | ¦«} | dkrdS|  |¦«sŒ3| t |¦«d… ¦«} t| g¦«D�]f} | d\} }i}i}| D]}d||<Œ| dd…D]E\}}|�|  ¦«}nd}|| vs|| vr|}|| vr |€d }|||<Œ6|| vr|||<Œ@|||<ŒF|j }|d ¦«}|d ¦«}|�t|¦«}|€d }|d ¦«}| d ¦«}t|d¦«| ||d¦«|d¦«|||d¦«|d¦«|d¦«|d¦«|||d¦«|d¦«|¦«}|s |j r�Œ8|s| |¦«r�ŒQ| |¦«�Œh�ŒÕ#t $r‚t"$r$t%¦«td|›d| ›�¦«‚wxYw)Nz5%r does not look like a Set-Cookie3 (LWP) format filez Set-Cookie3:)rVrUrWrÇr)rÈrÉrÆrÅrÄrrýr%r‚r FTrÄrrÅrÝrÈrÉrVrWrÆrUrÇrrýz invalid Set-Cookie3 format file ú: )Úreadliner<rfrrtr£r¤rÏr®rIr*r‘rrr2r rPrr")r"r rBrErFÚmagicr!r1ÚheaderrrÚlineÚdatarªr«rr#rºr»rÚrrÄrrÅrr#s rrKzLWPCookieJar._really_loados%€Ø— ’ ‘ ” ˆØŒ}×#Ò# EÑ*Ô*ð !ðØ$ñ%ˆCå˜C‘.”.Ð åŒi‰kŒkˆàˆð.ˆ ð0ˆ ð ; .ð4 'Ø—z’z‘|”|�ؘ2’:�:˜u˜uØ—’ vÑ.Ô.ðØØ�C ™KœK˜L˜LÔ)×/Ò/Ñ1Ô1�å.°¨vÑ6Ô6ð-'ñ-'�DØ"& q¤'‘K�D˜%Ø!�HØ�DØ*ð,ð,˜Ø&+˜ ™ ˜ Ø $ Q R R¤ð(ð(™˜˜1ؘ=Ø!"§¢¡¤˜B˜Bà!%˜Bà +Ð-Ð-°2¸Ð3FÐ3FØ "˜AØ  Ð-Ð-Ø ˜y¨d¨!Ø*+˜H Q™K˜KØ +Ð-Ð-Ø*+˜H Q™K˜Kà&'˜D ™G˜Gà œ �Aؘa  ™lœl�Gؘa  ™lœl�GØÐ*Ý"*¨7Ñ"3Ô"3˜Ø�Ø"&˜Ø˜Q˜x™[œ[�FØ'-×'8Ò'8¸Ñ'=Ô'=Ð$ݘq˜q ™|œ|¨T°5Ø ˜q ™yœy¨!¨!¨K©.¬.Ø%Ð'7¸¸¸<¹¼Ø ˜q ™yœy¨!¨!¨K©.¬.Ø ˜q ™{œ{Ø&Ø&Ø ˜q ™|œ|Ø ˜q ™œØ#ñ %ô %�Að*ð!¨a¬ið!Ù Ø)ð!¨a¯lªl¸3Ñ.?Ô.?ð!Ù Ø—O’O AÑ&Ô&Ð&Ñ&ñi4 'øõjð ð ð Ø Ýð .ð .ð .Ý %Ñ 'Ô 'Ð 'Ý�)Ø%˜X˜X t tð-ñ.ô.ð .ð .øøøsÁH3Á:F9H3È38I+)TTrS)r?rArBrCr]rGrKrHrrrrCs^€€€€€ð ð ð!ð!ð!ð!ð Eð Eð Eð EðL.ðL.ðL.ðL.ðL.rrcó —eZdZdZd„Zdd„ZdS)r aš WARNING: you may want to backup your browser's cookies file if you use this class to save cookies. I *think* it works, but there have been bugs in the past! This class differs from CookieJar only in the format it uses to save and load cookies to and from a file. This class uses the Mozilla/Netscape `cookies.txt' format. curl and lynx use this file format, too. Don't expect cookies saved while the browser is running to be noticed by the browser (in fact, Mozilla on unix will overwrite your saved cookies if you change them on disk while it's running; on Windows, you probably can't save at all while the browser is running). Note that the Mozilla/Netscape format will downgrade RFC2965 cookies to Netscape cookies on saving. In particular, the cookie version and port number information is lost, together with information about whether or not Path, Port and Discard were specified by the Set-Cookie2 (or Set-Cookie) header, and whether or not the domain as set in the HTTP header started with a dot (yes, I'm aware some domains in Netscape files start with a dot and some don't -- trust me, you really don't want to know any more about this). Note that though Mozilla and Netscape use the same format, they use slightly different headers. The class saves cookies using the Netscape header by default (Mozilla can cope with that). có—tj¦«}t | ¦«¦«st d|z¦«‚ | ¦«}i}|dkrdS| t ¦«r&d|t<|tt ¦«d…}|  d¦«r |dd…}|  ¦« d¦«s|  ¦«dkrŒ¾|  d¦«\}} } } } } }| dk} | dk} | dkr|} d}| d ¦«}| |ksJ‚d }| dkrd} d }td | |dd || || d | | |dd|¦«}|s |j r�ŒC|s| |¦«r�Œ\| |¦«�Œr#t $r‚t"$r$t%¦«t d |›d|›�¦«‚wxYw)Nz4%r does not look like a Netscape format cookies filer%r‚r\r¿)ú#rˆú ÚTRUErÝFTr z%invalid Netscape format cookies file rg)rtÚNETSCAPE_MAGIC_RGXr•rhrr£ÚHTTPONLY_PREFIXÚ HTTPONLY_ATTRr¤rÀrÏrÎrrr2r rPrr")r"r rBrErFr1rkr#rÅrrÆrÇrÄrªr«rêrr#s rrKzMozillaCookieJar._really_loadÞsu€ÝŒi‰kŒkˆå!×'Ò'¨¯ ª © ¬ Ñ5Ô5ð ÝØFØññôð ð? .ð7 #Ø—z’z‘|”|�Ø�à˜2’:�:˜u˜uð —?’?¥?Ñ3Ô3ð7Ø*,�D�Ñ'Ø¥¥OÑ 4Ô 4Ð 5Ð 5Ô6�Dð—=’= Ñ&Ô&Ð8¨t°C°R°C¬y¨ð—J’J‘L”L×+Ò+¨JÑ7Ô7ðØ—J’J‘L”L BÒ&Ð&ØðŸ š  4Ñ(Ô(ñM�Ð(¨$°¸ÀÀuà  FÒ*�Ø$4¸Ò$>Рؘ2’:�:ð!�DØ �Eà$×/Ò/°Ñ4Ô4� Ø'¨;Ò6Ð6Ð6Ð6à�ؘb’=�=Ø"�GØ"�Gõ˜1˜d EØ Ø!Ð#3°[Ø Ø!Ø"Ø"ØØØñ !ô !�ð&ð¨!¬)ðÙØ%ð¨!¯,ª,°sÑ*;Ô*;ðÙØ—’ Ñ"Ô"Ð"ño7 #øõrð ð ð Ø Ýð .ð .ð .Ý %Ñ 'Ô 'Ð 'Ý�)Ø%˜X˜X t tð-ñ.ô.ð .ð .øøøsÁGÁ2EGÇ8G>NFc óP—|€#|j�|j}ntt¦«‚tjtj|tjtjztjzd¦«d¦«5}|  t¦«tj ¦«}|D]é}|j }|s|j rŒ|s| |¦«rŒ+|jrd}nd}| d¦«rd} nd} |j�t%|j¦«} nd} |j€ d} |j} n|j} |j} | t,¦«r t.|z}|  d || |j|| | | g¦«dz¦«Œê ddd¦«dS#1swxYwYdS) Nr_r`rqÚFALSErÝr‚rpr\)rBrsrIr@rarJrbrcrdreÚNETSCAPE_HEADER_TEXTrtrÅrr2rÇr£rÄrœr«rªr(rtrsr¶rÆ) r"rBrErFr r1rIrÅrÇrêrÄrªr«s rrGzMozillaCookieJar.save's€Ø Ð ØŒ}Ð(°T´]¨(¨(Ý"Õ#8Ñ9Ô9Ð9å ŒYÝ ŒG�H�bœj­2¬;Ñ6½¼ÑCÀUÑ KÔ KØ ñ ô ð" ðØ �GŠGÕ(Ñ )Ô )Ð )Ý”)‘+”+ˆCØð ð �Øœ�Ø%ð¨&¬.ðØØ%ð¨&×*;Ò*;¸CÑ*@Ô*@ðØØ”=ð'¨6 & &Ø&�fØ×$Ò$ SÑ)Ô)ð,¸¨;¨;Ø$+�kØ”>Ð-Ý! &¤.Ñ1Ô1�G�Gà �GØ”<Ð'ð�DØ"œK�E�Eà!œ;�DØ"œL�EØ×.Ò.­}Ñ=Ô=ð6Ý,¨vÑ5�FØ—’Ø—I’I˜v {°F´KØ% w°°eð=ñ>ô>àññôððð3 ð " ð" ð" ñ" ô" ð" ð" ð" ð" ð" ð" ð" øøøð" ð" ð" ð" ð" ð" sÁ3DFÆFÆ"FrS)r?rArBrCrKrGrHrrr r ¾sE€€€€€ððð>G.ðG.ðG.ðR'ð'ð'ð'ð'ð'rr r&)XrCÚ__all__r@r rMr¤rtÚ urllib.parserïÚurllib.requestÚ threadingrÙÚ http.clientÚhttpÚcalendarr r rrrtrsrœÚclientÚ HTTP_PORTrr7rrrIrwr"r+r3rXrZrqrVr[rdr;rerlr~r„ÚIrˆÚXrŠr�r�r‘r˜r�ržr rŸr®rµr¼rÂrÛrßràrærèrërór÷rýrrr r r rrrrrrrÎrÓrrPrrrYrr rHrrúrƒsÜðððð6 Mð Mð M€ð € € € Ø € € € Ø€€€Ø € € € Ø € € € Ø#Ð#Ð#Ð#Ð#Ð#Ð#Ð#ØÐÐÐØÐÐÐØÐÐÐÐÐà €Ø €ðððð€ Ø€Ø�C˜œ Ô-Ñ.Ô.ÐØ�R”ZÐ @ÑAÔAÐð:ÐðÐðAðAðAð€ ðððð9Ð8Ð8€ð 4ð 4ð 4€à2Ð2¨6Ð2Ñ2Ô2€ ðBðBðBðBð&0ð0ð0ð0ð( ¨T¸Ð =Ð =€ àˆbŒjÐ5°r´xÑ@Ô@€ ð ð ð ð6 ð6 ð6 ðp�”ð,Ø-/¬Xñ7ô7€ðˆRŒZØ2°B´D¸2¼8±OñEôE€ à�R”Zð ð& ŒD�2”8‰Oñ)ôÐð*65ð65ð65ðpˆbŒjð ð Œ4�"”)Ñ ñ#ô€ ð$5ð5ð5ðB3ð3ð3ð $˜œÐ$6Ñ7Ô7€Ø#˜œÐ$MÑNÔNÐØ#˜œÐ$9Ñ:Ô:€Ø�2”:˜hÑ'Ô'ÐðSðSðSðj#˜œ  ;Ñ/Ô/Ððððð2ðððAðAðAðH ˆ"Œ*�Y ¤Ñ )Ô )€ð ð ð ð%ð%ð%ðNðððððð(ˆbŒj˜ 2¤8Ñ,Ô,€ ðððð ð ð ðððð ð ð ð $€Ø�"”*Ð9Ñ:Ô:€ð+ð+ð+ð ð ð ð! ð! ð! ðFððð"_Eð_Eð_Eð_Eð_Eñ_Eô_Eð_EðDððððñôððB_ð_ð_ð_ð_˜,ñ_ô_ð_ðB ð ð ð"ÐÐÐÐÑÔÐðLDðLDðLDðLDðLDñLDôLDðLDð`ÐÐÐÐ�ÑÔÐð4)ð4)ð4)ð4)ð4)�Iñ4)ô4)ð4)ðn"ð"ð"ð8x.ðx.ðx.ðx.ðx.�=ñx.ôx.ðx.ðvPðPðPðPðP�}ñPôPðPðPðPr