/opt/alt/python311/lib64/python3.11/http/__pycache__
NameSizeModeActions
client.cpython-311.opt-1.pyc628220644editdlrm
client.cpython-311.opt-2.pyc537280644editdlrm
client.cpython-311.pyc631200644editdlrm
cookiejar.cpython-311.opt-1.pyc878680644editdlrm
cookiejar.cpython-311.opt-2.pyc725630644editdlrm
cookiejar.cpython-311.pyc881570644editdlrm
cookies.cpython-311.opt-1.pyc248690644editdlrm
cookies.cpython-311.opt-2.pyc204260644editdlrm
cookies.cpython-311.pyc249170644editdlrm
server.cpython-311.opt-1.pyc607800644editdlrm
server.cpython-311.opt-2.pyc489300644editdlrm
server.cpython-311.pyc607800644editdlrm
__init__.cpython-311.opt-1.pyc87470644editdlrm
__init__.cpython-311.opt-2.pyc76660644editdlrm
__init__.cpython-311.pyc87470644editdlrm
Edit: /opt/alt/python311/lib64/python3.11/http/__pycache__/cookiejar.cpython-311.opt-1.pyc (87868B)
§ ó΀#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 ú5/opt/alt/python311/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ó`—g}|D�]§}|}g}|�r†t |¦«}|rït|¦«}| d¦«}t |¦«}|r@t|¦«}| d¦«}t  d|¦«}nWt |¦«}|r9t|¦«}| d¦«}| ¦«}nd}|  ||f¦«nx|  ¦«  d¦«r6|  ¦«dd…}|r|  |¦«g}ntj dd|¦«\}} |}|�°†|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‚)Ú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­€ð\€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Ñ'�˜-ð �ð?ñ ð@ Ð&�&—-’- Ñ&Ô&Ð&ùØ €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 rrÿrÿ¥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 ÚreprrrÚ __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,r0r6r>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.rDrFs 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_okdrNrN)r=r?r@rArHrJrMrPrHrrrrIsZ€€€€€ððð$ð$ð$ð$ð$ð$ðððð ðððð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_domainsrUrVrWrXrYrZr[r\r]r^r_s 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).)ra©r s rrcz#DefaultCookiePolicy.blocked_domains—ó €àÔ$Ð$rcó.—t|¦«|_dS)z$Set the sequence of blocked domains.N)r`ra)r rcs rÚset_blocked_domainsz'DefaultCookiePolicy.set_blocked_domainsšs€å % oÑ 6Ô 6ˆÔÐÐrcó@—|jD]}t||¦«rdSŒdSr.)raré)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).)rbrfs rrdz#DefaultCookiePolicy.allowed_domains¤rgrcó6—|�t|¦«}||_dS)z-Set the sequence of allowed domains, or None.N)r`rb)r rds rÚset_allowed_domainsz'DefaultCookiePolicy.set_allowed_domains§s#€à Ð &Ý# OÑ4Ô4ˆOØ /ˆÔÐÐrcóR—|j€dS|jD]}t||¦«rdSŒdS)NFT)rbré)r rÃÚallowed_domains rÚis_not_allowedz"DefaultCookiePolicy.is_not_allowed­sE€Ø Ô Ð (Ø�5Ø"Ô3ð ð ˆNÝ  ¨Ñ8Ô8ð Ø�u�uð àˆtrcóŽ—td|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=%s)rÆÚ verifiabilityr¨rÄrÃrÇÚset_ok_FT©rr¨r©r:©r rGròÚnÚfn_nameÚfns rrHzDefaultCookiePolicy.set_okµsl€õ Ð)¨6¬;¸¼ ÑEÔEÐEðNð ð ˆ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©rVrUrFs 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ÆrZrr[rFs 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¡rrFs 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^rPrÄr)r rGròÚ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)rlrÃrrrrrûrYÚcountràrIÚlenr¡rør¾rÆr\ÚDomainRFC2965MatchräÚDomainStrictNoDotsrÝrf) r rGrò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)rrÚstrrÇrÌrgrsr©r rGròÚreq_portr3s 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). rt)rÆrurÅrÂrÇrÃÚ return_ok_FTrwrxs rrJzDefaultCookiePolicy.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 r}Fr~T)rÆrVrrUrFs 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‚rFs 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ÅÚtyper_rrFs rÚreturn_ok_securez$DefaultCookiePolicy.return_ok_secureos4€Ø Œ=ð ˜Wœ\°Ô1FÐFÐFÝ Ð=Ñ >Ô >Ð >Ø�5؈trcó\—| |j¦«rtd¦«dSdS)Nz cookie expiredFT)r0Ú_nowrrFs 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 rGrò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¾rlrrr)r rÃròrúrùrÂs rrMz$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 rrPz"DefaultCookiePolicy.path_return_ok¾s›€ÝÐ*¨DÑ1Ô1Ð1Ý Ñ(Ô(ˆÝ�d‘)”)ˆØ �tÒ Ð Ø�4Ø×!Ò! $Ñ'Ô'ð Ø�}Š}˜SÑ!Ô!ð Ø%-¨g°g¸a±iÐ.?Ô%@ÀCÒ%GÐ%GØ�4åÐ,¨h¸Ñ=Ô=Ð=؈ur) r=r?r@rAr¤rÁr£Ú DomainLiberalÚ DomainStrictr"rcrirlrdrorrrHrr„r‡rŠr«r±rJrµr·rºr½r¿rÃrMrPrHrrrrjsÀ€€€€Ø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=r?r@rHrrrÒ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×rMrrÛÚkeysrPrËrJr )r rÃròÚcookiesÚcookies_by_pathrÄÚcookies_by_namerGs 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ÒÚattrsrGrÆr©rÃr3s 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´rVrXrÆÚreleaseÚclear_expired_cookies)r ròrârñrGs 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Òrgrsrÿrrà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 rGs 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)NrWr%Tr )r:r×rVrÆr)r râÚ rfc2109_as_nsrGs 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¼rVrUr r¬Ú Exceptionr"rÙrrÃrÄr¨Úfilterrç) r Úresponseròr¶Ú rfc2965_hdrsÚns_hdrsrVrUrâÚ ns_cookiesrrGrs 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¼rHÚ set_cookierùrFs 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 rGÚcÚc2Úc3s rrzCookieJar.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×rHrrù)r rròrGs 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 rrzCookieJar.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örrrÃrÄr¨rù)r rGs 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örtr0rrÃrÄr¨rù)r r/rGs 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Ûrfs rÚ__iter__zCookieJar.__iter__Ùs€Ý˜$œ-Ñ(Ô(Ð(rcó—d}|D]}|dz}Œ|S)z#Return number of contained cookies.r r%rH)r rãrGs 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 ÚrrGs 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�Sr0)r r®r<r=r´r3s rr6zCookieJar.__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=r?r@rAr¢ÚcompilerïrðÚstrict_domain_reÚ domain_reÚdots_reÚASCIIÚmagic_rer"rßrårèròrôrr r rrr rr&rr)rúr,r.r>r6rHrrrrÞ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 rArBrÝs rr"zFileCookieJar.__init__ósG€õ ×Ò˜4 Ñ(Ô(Ð(Ø Ð Ý”y Ñ*Ô*ˆHØ ˆŒ ݘi™œˆŒˆˆrcó—t¦«‚)zSave cookies to a file.rD)r rAÚignore_discardÚignore_expiress rÚsavezFileCookieJar.saveÿrKrcóЗ|€#|j�|j}ntt¦«‚t|¦«5}| ||||¦«ddd¦«dS#1swxYwYdS)zLoad cookies from a file.N)rArsÚMISSING_FILENAME_TEXTÚopenÚ _really_load©r rArDrEr 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) rArsrHrÚrörÚdeepcopyrÛrLÚOSErrorrù)r rArDrEÚ 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=r?r@rAr"rFrLrQrHrrrrð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Úsortedrrár®rÆrº)rGrrár¸s rÚlwp_cookie_strrX'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‚)rtrr0r rXr´)r rDrEr/r4rGs 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 ) rArsrHr?ÚfdopenrIÚO_CREATÚO_WRONLYÚO_TRUNCÚwriter\rKs rrFzLWPCookieJar.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:)rUrTrVrÅr)rÆrÇrÄrÃrÂrrür%r‚r FTrÂrrÃrÛrÆrÇrUrVrÄrTrÅrrüz invalid Set-Cookie3 format file ú: )Úreadliner;rfrrtr¡r¢rÍr¬rIr(r‘rrr0rrOrr")r r rArDrEÚmagicr!r/ÚheaderrÿrÚlineÚdatar¨r©rr!r¸r¹rØrrÂrrÃrr"s rrJzLWPCookieJar._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+)TTrR)r=r?r@rAr\rFrJrHrrrrCs^€€€€€ð ð ð!ð!ð!ð!ð 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 ¦«}d }| dkrd} d }td | |dd || || d | | |dd|¦«}|s |j r�Œ;|s| |¦«r�ŒT| |¦«�Œj#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 rf)rtÚNETSCAPE_MAGIC_RGXr•rgrr¡ÚHTTPONLY_PREFIXÚ HTTPONLY_ATTRr¢r¾rÍrÌrrr0rrOrr")r r rArDrEr/rjr!rÃrrÄrÅrÂr¨r©rèrr"s rrJzMozillaCookieJar._really_loadÞsf€ÝŒ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� ð �ؘb’=�=Ø"�GØ"�Gõ˜1˜d EØ Ø!Ð#3°[Ø Ø!Ø"Ø"ØØØñ !ô !�ð&ð¨!¬)ðÙØ%ð¨!¯,ª,°sÑ*;Ô*;ðÙØ—’ Ñ"Ô"Ð"ño7 #øõrð ð ð Ø Ýð .ð .ð .Ý %Ñ 'Ô 'Ð 'Ý�)Ø%˜X˜X t tð-ñ.ô.ð .ð .øøøsÁF>Á2E F>Æ>8G6NFc ó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_rpÚFALSErÛr‚ror[)rArsrHr?r`rIrarbrcrdÚNETSCAPE_HEADER_TEXTrtrÃrr0rÅr¡rÂr®r©r¨r&rsrrr´rÄ) r rArDrEr r/rGrÃrÅrèrÂr¨r©s rrFzMozillaCookieJar.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Æ"FrR)r=r?r@rArJrFrHrrr r ¾sE€€€€€ððð>G.ðG.ðG.ðR'ð'ð'ð'ð'ð'rr r$)XrAÚ__all__r?rrMr¢rtÚ urllib.parseríÚurllib.requestÚ threadingrØÚ http.clientÚhttpÚcalendarr r rrrsrrr®ÚclientÚ HTTP_PORTrr6rqrHrvr"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 rrÿrrrrrrÍrÒrrOrrrXrr 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