Ë c‡½j~.ãój—dZgd¢ZddlZddlZddlZddlZddlZddlZddl Zddl Z ddl Z ddlmZdZdad„ZdZdZee j,j.«Zej2d «Zd Zd Zd „Zd Zd„Zgd¢Z gd¢Z!e!D�cgc]}|jE«‘Œc}Z#dKd„Z$dKd„Z%dddddœZ&ej2dejN«Z(d„Z)d„Z*ej2dejN«Z+ej2dejXejNz«Z-ej2dej\ejNz«Z/d„Z0ej2dej\ejNz«Z1d„Z2d„Z3ej2d«Z4ej2d«Z5ej2d «Z6ej2d!«Z7d"„Z8ej2d#«Z9d$„Z:d%„Z;d&„Z<ej2d'ejN«Z=d(„Z>d)„Z?d*„Z@d+„ZAej2d,ejN«ZBd-„ZCd.„ZDd/„ZEd0„ZFd1ZGej2d2«ZHd3„ZId4„ZJd5„ZKd6„ZLGd7„d8«ZMGd9„d:«ZNGd;„d„d?«ZQGd@„dA«ZRGdB„dCeS«ZTGdD„dEeR«ZUdF„ZVGdG„dHeU«ZWGdI„dJeU«ZXycc}w)Laª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ój—tsytsddl}|jd«atj|ŽS)Nr zhttp.cookiejar)ÚdebugÚloggerÚloggingÚ getLogger)Úargsrs ú'/usr/lib64/python3.12/http/cookiejar.pyÚ_debugr,s.€Ý Øå ÛØ×"Ñ"Ð#3Ó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}|j«}|j d|«|j «}|j d|zd¬«y)Nr zhttp.cookiejar bug! %sé)Ú stacklevel)ÚioÚwarningsÚ tracebackÚStringIOÚ print_excÚgetvalueÚwarn)rrrÚfÚmsgs rÚ_warn_unhandled_exceptionr"BsF€÷#Ó"Ø � ‰ ‹ €AØ ×ј˜aÔ Ø �*‰*‹,€CØ ‡M�MÐ+¨cÑ1¸a€MÕ@ri²cóΗ|dd\}}}}}}|tk\rPd|cxkrdkrEnyd|cxkrdkr7nyd|cxkrdkr)nyd|cxkrdkrnyd|cxkrdkr t|«Syy) Nééé ér éé;é=)Ú EPOCH_YEARr )ÚttÚyearÚmonthÚmdayÚhourÚminÚsecs rÚ_timegmr3Qs‹€Ø(*¨2¨A¨Ñ%€Dˆ%��t˜S #Ø ”Ò  ! uÔ"2°Ô"2ðð :;¸d¼Àb¼ðð ˆdŒ�bŒðð ! Cœ~¨2œ~ðð56¸´NÀ²NÜ�b‹zÐð5Cñr)ÚMonÚTueÚWedÚThuÚFriÚSatÚSun) ÚJanÚFebÚMarÚAprÚMayÚJunÚJulÚAugÚSepÚOctÚNovÚDeccóP—|€/tjjtj¬«}n/tjj|tj¬«}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 ©Útzz%04d-%02d-%02d %02d:%02d:%02dZ) ÚdatetimeÚnowÚUTCÚ fromtimestampr-r.Údayr0ÚminuteÚsecond©ÚtÚdts rÚ time2isozrT^s€ð €yÜ × Ñ × "Ñ "¤h§l¡lÐ "Ó 3‰ä × Ñ × ,Ñ ,¨Q´8·<±<Ð ,Ó @ˆØ +Ø �‰�—‘˜2Ÿ6™6 2§7¡7¨B¯I©I°r·y±yð/Bñ BðBrcó�—|€/tjjtj¬«}n/tjj|tj¬«}dt|j «|j t|jdz |j|j|j|jfzS)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 rHz#%s, %02d-%s-%04d %02d:%02d:%02d GMTr%) rJrKrLrMÚDAYSÚweekdayrNÚMONTHSr.r-r0rOrPrQs rÚ time2netscaperYqs“€ð €yÜ × Ñ × "Ñ "¤h§l¡lÐ "Ó 3‰ä × Ñ × ,Ñ ,¨Q´8·<±<Ð ,Ó @ˆØ 0Ü ˆR�Z‰Z‹\јBŸF™F¤F¨2¯8©8°A©:Ñ$6Ø �‰�—‘˜"Ÿ)™) R§Y¡Yð40ñ 0ð0r)ÚGMTrLÚUTÚZz^([-+])?(\d\d?):?(\d\d)?$có—d}|tvrd}|Stj|«}|redt|j d««z}|j d«r |dt|j d««zz}|j d«dk(r| }|S)Nr iréé<r%Ú-)Ú UTC_ZONESÚ TIMEZONE_REÚsearchÚintÚgroup)rIÚoffsetÚms rÚoffset_from_tz_stringrhˆs‡€Ø €FØ ŒY�؈ð €Mô × Ñ ˜rÓ "ˆÙ ØœC §¡¨£ ›OÑ+ˆFØ�w‰w�qŒzØ "¤s¨1¯7©7°1«:£Ñ"6Ñ6�Ø�w‰w�q‹z˜SÒ Ø ˜�Ø €Mrc ó¼—t|«}|tjkDry tj |j ««dz}|€d}|€d}|€d}t|«}t|«}t|«}t|«}|dkr\tjtj««d}|dz} |} ||z| z }| | z } t| «dkDr| dkDr|dz}n|dz }t|||||||f«} | �'|€d}|j«}t|«} | €y| | z } | S#t $r5 t|«}n#t $rYYywxYwd|cxkrdkrnYy|}nYyY�ŒwxYw)Nr%r&r ièédé2rL) rdrJÚMAXYEARÚ MONTHS_LOWERÚindexÚlowerÚ ValueErrorÚtimeÚ localtimeÚabsr3Úupperrh) rNÚmonÚyrÚhrr1r2rIÚimonÚcur_yrrgÚtmprRrfs rÚ _str2timer{–sŠ€Ü ˆR‹€BØ ŒH× Ñ ÒØð Ü× Ñ  §¡£Ó-¨aÑ/ˆð €z˜�2Ø €{˜!�CØ €{˜!�Cä ˆc‹(€CÜ ˆR‹€BÜ ˆc‹(€CÜ ˆc‹(€Cà ˆD‚yä—‘¤§ ¡ £ Ó,¨QÑ/ˆØ �S‰LˆØˆØ �&‰[˜1‰_ˆØ �‰GˆÜ ˆq‹6�BŠ;Ø�1Šu˜2 ™8‘bؘC‘x�"ô ��S˜#˜r 3¨¨RÐ0Ó1€Aà€}à ˆ:؈BØ �X‰X‹ZˆÜ& rÓ*ˆØ ˆ>ØØ �‰Jˆà €Høô[ ò ð Ü�s“8‰DøÜò Úð úà �Œ?˜Œ?ñð‰Cáò ð ús;¡&DÄ EÄ' D3Ä2EÄ3 EÄ<EÄ?EÅEÅEÅEzV^[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 ó.—tj|«}|rˆ|j«}tj |dj ««dz}t |d«|t |d«t |d«t |d«t|d«f}t|«S|j«}tjd|d«}dgd z\}}}}}} } tj|«}|�|j«\}}}}}} } nyt|||||| | «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 r^ééÚNé)ÚSTRICT_DATE_RErcÚgroupsrmrnrordÚfloatr3ÚlstripÚ WEEKDAY_REÚsubÚLOOSE_HTTP_DATE_REr{) ÚtextrgÚgrur,rNrvrwr1r2rIs rÚ http2timerŠès€ô< ×јdÓ#€AÙØ �H‰H‹JˆÜ× Ñ   1¡§¡£Ó.°Ñ2ˆÜ�!�A‘$‹i˜œc ! A¡$›iÜ�!�A‘$‹iœ˜Q˜q™T›¤E¨!¨A©$£Kð1ˆä�r‹{Ðð �;‰;‹=€DÜ �>‰>˜"˜d AÓ &€Dð'+ V¨A¡XÑ"€Cˆˆb�"�c˜3 ô ×!Ñ! $Ó'€AØ€}Ø)*¯©«Ñ&ˆˆS�"�b˜#˜s¡Bàä �S˜#˜r 2 s¨C°Ó 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 óÄ—|j«}dgdz\}}}}}}}tj|«}|�|j«\}}}}}}}} nyt |||||||«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_RErcr‚r{) rˆrNrurvrwr1r2rIrgÚ_s rÚiso2timerŽ2sz€ð �;‰;‹=€Dð'+ V¨A¡XÑ"€Cˆˆb�"�c˜3 ô ×ј4Ó €AØ€}ð-.¯H©H«JÑ)ˆˆC��b˜#˜s B©àä �S˜#˜r 2 s¨C°Ó 4Ð4rcóh—|jd«\}}|jd||j|dzS)z)Return unmatched part of re.Match object.r N)ÚspanÚstring)ÚmatchÚstartÚends rÚ unmatchedr•Ss4€à—‘˜A“�J€Eˆ3Ø �<‰<˜˜Ð  § ¡ ¨S¨TÐ 2Ñ 2Ð2rz^\s*([^=\s;,]+)z&^\s*=\s*\"([^\"\\]*(?:\\.[^\"\\]*)*)\"z^\s*=\s*([^\s;,]*)z\\(.)cóÒ—g}|D�]^}|}g}|�r?tj|«}|rÀt|«}|jd«}tj|«}|r3t|«}|jd«}t j d|«}nFtj|«}|r-t|«}|jd«}|j«}nd}|j||f«nd|j«jd«r)|j«dd}|r|j|«g}ntjdd|«\}} |}|r�Œ?|s�ŒN|j|«�Œa|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_RErcr•reÚHEADER_QUOTED_VALUE_REÚHEADER_ESCAPE_REr†ÚHEADER_VALUE_REÚrstripÚappendr„Ú startswithÚreÚsubn) Ú header_valuesÚresultrˆÚ orig_textÚpairsrgÚnameÚvalueÚnon_junkÚ nr_junk_charss rÚsplit_header_wordsr©\sH€ð\€F܈؈ ؈ÚÜ×&Ñ& tÓ,ˆAÙÜ  “|�Ø—w‘w˜q“z�Ü*×1Ñ1°$Ó7�ÙÜ$ Q›<�DØŸG™G A›J�EÜ,×0Ñ0°¸Ó>‘Eä'×.Ñ.¨tÓ4�AÙÜ(¨›|˜Ø !§¡¨£ ˜Ø %§ ¡ £™ð!%˜Ø— ‘ ˜d E˜]Õ+Ø—‘“×)Ñ)¨#Ô.à—{‘{“} Q RÐ(�Ù˜&Ÿ-™-¨Ô.Ø‘ô+-¯'©'°+¸rÀ4Ó*HÑ'�˜-ð �ó?ó@ �&—-‘- Ö&ðGðH €Mrú([\"\\])có*—g}|D]|}g}|D]P\}}|�8tjd|«stjd|«}d|z}|›d|›�}|j |«ŒR|sŒ]|j dj |««Œ~dj |«S)a»Do the inverse (almost) of the conversion done by split_header_words. Takes a list of lists of (key, value) pairs and produces a single header value. Attribute values are quoted if needed. >>> 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"' z^\w+$ú\\\1z"%s"Ú=ú; ú, )rŸrcÚHEADER_JOIN_ESCAPE_REr†r�Újoin)ÚlistsÚheadersr¤ÚattrÚkÚvs rÚjoin_header_wordsr·²s’€ð€Gۈ؈ۉDˆAˆq؈}Ü—y‘y ¨1Ô-Ü-×1Ñ1°'¸1Ó=�AØ ™ �AÚ ¡!Ð$�Ø �K‰K˜�Nð ò �—‘ § ¡ ¨$£Õ0ðð �9‰9�WÓ Ðrcó^—|jd«r|dd}|jd«r|dd}|S)NÚ"r%éÿÿÿÿ)ržÚendswith©rˆs rÚ strip_quotesr½Ës5€Ø ‡��sÔØ�A�BˆxˆØ ‡}�}�SÔØ�C�RˆyˆØ €Krcó—d}g}|D�]}g}d}t|jd««D]¶\}}|j«}|jd«\}} } |j«}|s|dk(rnuŒE| r| j«nd} |dk7rF|j «} | |vr| }|dk(r| � t | «} d}n|d k(r| �t t | ««} |j|| f«Œ¸|sŒÞ|s|jd «|j|«�Œ|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Ú partitionror½rŠr�) Ú ns_headersÚ known_attrsr¢Ú ns_headerr¤Ú version_setÚiiÚparamÚkeyÚsepÚvalÚlcs rÚparse_ns_headersrÖÒs€ð1€Kð€F܈ ؈؈ ô # 9§?¡?°3Ó#7Ö8‰IˆB�Ø—K‘K“MˆEà!ŸO™O¨CÓ0‰MˆC��cØ—)‘)“+ˆCáØ˜’7Ùàñ"%�#—)‘)”+¨$ˆCà�QŠwØ—Y‘Y“[�ؘÑ$Ø�Cà˜)Ò#à�Ü*¨3Ó/˜Ø"&‘KؘIÒ%à�Ü'¬ °SÓ(9Ó:˜Ø �L‰L˜#˜s˜Õ $ð=9ò@ ÙØ— ‘ Ð-Ô.Ø �M‰M˜%Ö ðW ðZ €Mrz\.\d+$có^—tj|«ry|dk(ry|ddk(s|ddk(ryy)z*Return True if text is a host domain name.Frr Ú.rºT©ÚIPV4_RErcr¼s rÚis_HDNrÛs8€ô‡~�~�dÔØØ ˆr‚zØØ ˆA�w�#‚~˜˜b™ S𨨠rcóâ—|j«}|j«}||k(ryt|«sy|j|«}|dk(s|dk(ry|jd«syt|dd«syy)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)rorÛÚrfindrž)ÚAÚBÚis rÚ domain_matchrá&sm€ð. �‰‹ €AØ �‰‹ €A؈A‚vØÜ �!Œ9ØØ �‰�‹ €A؈B‚w�!�q’&àØ �<‰<˜Ô ØÜ �!�A�B�%Œ=ØØ rcó0—tj|«ryy)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ÔØØ rcóØ—|j«}|j«}t|«r t|«s||k(ryy|jd«}|r|j|«ry|s||k(ryy)z\For blocking/accepting domains. A and B may be host domain names or IP addresses. TFrØ)rorãržr»)rÞrßÚ initial_dots rÚuser_domain_matchræWsc€ð �‰‹ €AØ �‰‹ €AÜ ˜1Ô ¤.°Ô"3Ø �Š6àØØ—,‘,˜sÓ#€KÙ�q—z‘z !”}ØÙ ˜1 š6ØØ rz:\d+$cóâ—|j«}tjj|«d}|dk(r|j dd«}t j d|d«}|j«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†ro)ÚrequestÚurlÚhosts rÚ request_hostròlsd€ð × Ñ Ó €CÜ �<‰<× Ñ  Ó % aÑ (€DØ ˆr‚zØ×!Ñ! &¨"Ó-ˆô �?‰?˜2˜t QÓ '€DØ �:‰:‹<Ðrcó6—t|«x}}d|vr|dz}||fS)zzReturn a tuple (request-host, effective request-host name). As defined by RFC 2965, except both are lowercased. rØú.local)rò)rïÚerhnÚreq_hosts rÚeff_request_hostr÷|s/€ô # 7Ó+Ð+€Dˆ8Ø �(ÑØ˜(Ñ"ˆØ �Tˆ>Ðrcóº—|j«}tjj|«}t |j «}|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ý‡sL€à × Ñ Ó €CÜ �L‰L× !Ñ ! #Ó &€EÜ �u—z‘zÓ "€DØ �?‰?˜3Ô à�T‰zˆØ €Krcó¸—|j}|jd«}|dk\r||dzd} t|«|St }|S#t$rt d|«YywxYw)NÚ:r r%znonnumeric port: '%s')rñÚfindrdrprÚDEFAULT_HTTP_PORT)rïrñràrÄs rÚ request_portr‘sl€Ø �<‰<€DØ � ‰ �#‹€A؈A‚vØ�A�a‘C�Dˆzˆð Ü �ŒIð €Kô!ˆØ €Køô ò Ü Ð*¨DÔ 1Ùð ús¬ AÁAÁAz%/;:@&=+$,!~*'()z%([0-9a-fA-F][0-9a-fA-F])cóF—d|jd«j«zS)Nz%%%sr%)rert)r’s rÚuppercase_escaped_charr£s€Ø �E—K‘K “N×(Ñ(Ó*Ñ *Ð*rcó‚—tjj|t«}tj 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û¥s2€ô �<‰<× Ñ ˜d¤NÓ 3€DÜ × Ñ Ô5°tÓ <€DØ €Krcó˜—|jd«}|dk\r3||dzd}|jd«}t|«r|dk\s|dk(rd|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)rrÛ)ÚhràÚbs rÚreachr ³sU€ð4 �‰ˆs‹ €A؈A‚và ˆa�‰cˆdˆGˆØ �F‰F�3‹KˆÜ �!Œ9˜!˜qš& A¨¢LØ�q‘5ˆLØ €HrcóZ—t|«}t|t|j««syy)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Ös)€ô˜GÓ$€HÜ ˜¤%¨×(?Ñ(?Ó"@Ô AØàrcóB—eZdZdZ d d„Zd„Zd d„Zd„Zd d„Zd„Z d „Z y) 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. cóœ—|� t|«}| �tt| ««} |€|dur td«‚||_||_||_||_||_|j«|_ ||_ ||_ | |_ | |_ | |_| |_| |_||_||_||_t)j(|«|_y)NTz-if port is None, port_specified must be false)rdrƒrprÃr¥r¦rÄÚport_specifiedrorÀÚ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¨dÑ2ÜÐLÓMÐ MàˆŒ ؈Œ ؈Œ ؈Œ Ø,ˆÔà—l‘l“nˆŒ Ø 0ˆÔð #5ˆÔ؈Œ Ø,ˆÔ؈Œ ؈Œ ؈Œ ؈Œ Ø&ˆÔ؈Œ ä—Y‘Y˜t“_ˆ� rcó—||jvS©N©r)rr¥s rÚhas_nonstandard_attrzCookie.has_nonstandard_attr#s€Ø�t—z‘zÐ!Ð!rNcó:—|jj||«Sr!)rÚget)rr¥Údefaults rÚget_nonstandard_attrzCookie.get_nonstandard_attr%s€Ø�z‰z�~‰~˜d GÓ,Ð,rcó"—||j|<yr!r")rr¥r¦s rÚset_nonstandard_attrzCookie.set_nonstandard_attr's€Ø ˆ� ‰ �4Òrcóh—|€tj«}|j�|j|kryy©NTF)rqr¿)rrKs rÚ is_expiredzCookie.is_expired*s,€Ø ˆ;œdŸi™i›k˜Ø �L‰LÐ $¨4¯<©<¸3Ò+>ØØrcóð—|j€d}nd|jz}|j|z|jz}|j�|j›d|j›�}n |j}d|›d|›d�S)Nrrÿr­z)rÄrÀrÁr¦r¥)rÚpÚlimitÚ namevalues rÚ__str__zCookie.__str__0sd€Ø �9‰9Ð  "™aØ�d—i‘i‘-ˆaØ— ‘ ˜a‘ $§)¡)Ñ+ˆØ �:‰:Ð !Ø#'§9£9¨d¯jªjÐ9‰IàŸ ™ ˆIøÚ'0²%Ð8Ð8rcó\—g}dD]-}t||«}|j|›dt|«›�«Œ/|jdt|j«z«|jdt|j«z«|j j ›ddj|«›d�S)N)rÃr¥r¦rÄrrÀrrrÁrrÂr¿rrrr­zrest=%sz rfc2109=%sÚ(r¯Ú))Úgetattrr�ÚreprrrÚ __class__Ú__name__r±)rrr¥r´s rÚ__repr__zCookie.__repr__:s‰€ØˆóˆDô ˜4 Ó&ˆDØ �K‰K¢4¬¨d¬Ð4Õ 5ðð � ‰ �I¤ T§Z¡ZÓ 0Ñ0Ô1Ø � ‰ �L¤4¨¯ © Ó#5Ñ5Ô6ØŸ>™>×2Ó2°D·I±I¸dµOÐDÐDr)Fr!) r9Ú __module__Ú __qualname__Ú__doc__rr#r'r)r,r2r:©rrrrçs1„ñð6ó(%òT"ó-ò!óò 9ó Errcó(—eZdZdZd„Zd„Zd„Zd„Zy)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.rArCs rÚ return_okzCookiePolicy.return_ok[ó €ä!Ó#Ð#rcó—y)zMReturn false if cookies should not be returned, given cookie domain. Tr>)rrÀrïs rÚdomain_return_okzCookiePolicy.domain_return_ok_ó€ðrcó—y)zKReturn false if cookies should not be returned, given cookie path. Tr>)rrÁrïs rÚpath_return_okzCookiePolicy.path_return_okdrKrN)r9r;r<r=rErGrJrMr>rrrrIs„ñò$ò$òó 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 „Zy)!rzBImplements the standard rules for accepting and returning cookies.r%rr}r NTF)ÚhttpsÚwsscóú—||_||_||_||_||_||_| |_| |_| |_| |_ | |_ |�t|«|_ nd|_ |� t|«}||_ y)zAConstructor arguments should be passed as keyword arguments only.Nr>)Ú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_domainsrRrSrTrUrVrWrXrYrZr[r\s rrzDefaultCookiePolicy.__init__ts�€ð!ˆŒ ؈Œ Ø#6ˆÔ Ø(ˆÔØ*ˆÔØ+FˆÔ(Ø&<ˆÔ#Ø 0ˆÔØ,HˆÔ)Ø"4ˆÔØ 0ˆÔà Ð &Ü$)¨/Ó$:ˆDÕ !à$&ˆDÔ !à Ð &Ü# OÓ4ˆOØ /ˆÕrcó—|jS)z4Return the sequence of blocked domains (as a tuple).)r^©rs rr`z#DefaultCookiePolicy.blocked_domains—ó€à×$Ñ$Ð$rcó$—t|«|_y)z$Set the sequence of blocked domains.N)r]r^)rr`s rÚset_blocked_domainsz'DefaultCookiePolicy.set_blocked_domainsšs€ä % oÓ 6ˆÕrcóB—|jD]}t||«sŒyyr+)r^ræ)rrÀÚblocked_domains rÚ is_blockedzDefaultCookiePolicy.is_blockedžs$€Ø"×3Ô3ˆNÜ  ¨Õ8Ùð4ðrcó—|jS)z=Return None, or the sequence of allowed domains (as a tuple).)r_rcs rraz#DefaultCookiePolicy.allowed_domains¤rdrcó,—|� t|«}||_y)z-Set the sequence of allowed domains, or None.N)r]r_)rras rÚset_allowed_domainsz'DefaultCookiePolicy.set_allowed_domains§s€à Ð &Ü# OÓ4ˆOØ /ˆÕrcó\—|j€y|jD]}t||«sŒyy)NFT)r_ræ)rrÀÚallowed_domains rÚis_not_allowedz"DefaultCookiePolicy.is_not_allowed­s3€Ø × Ñ Ð (ØØ"×3Ô3ˆNÜ  ¨Õ8Ùð4ðrcóŒ—td|j|j«dD]}d|z}t||«}|||«rŒyy)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¦r6©rrDrïÚnÚfn_nameÚfns rrEzDefaultCookiePolicy.set_okµsN€ô Ð)¨6¯;©;¸¿ ¹ ÔEóNˆAØ ‘kˆGܘ˜wÓ'ˆBÙ�f˜gÕ&Ùð Nð rcóü—|j€"td|j|j«y|jdkDr|js td«y|jdk(r|j s td«yy)Nz0 Set-Cookie2 without version attribute (%s=%s)Fr ú$ RFC 2965 cookies are switched offú$ Netscape cookies are switched offT)rÃrr¥r¦rSrRrCs rÚset_ok_versionz"DefaultCookiePolicy.set_ok_versionÈsh€Ø �>‰>Ð !ô ÐEØ—;‘; § ¡ ô .àØ �>‰>˜AÒ  d§l¢lÜ Ð9Ô :ØØ �^‰^˜qÒ ¨¯ªÜ Ð9Ô :ØØrcóΗ|jrYt|«rN|jdkDr|jr t d«y|jdk(r|j r t d«yy©Nr z> third-party RFC 2965 cookie during unverifiable transactionFz> third-party Netscape cookie during unverifiable transactionT©Ú unverifiablerrÃrWrrXrCs rÚset_ok_verifiabilityz(DefaultCookiePolicy.set_ok_verifiability×s]€Ø × Ò ¤N°7Ô$;Ø�~‰~ Ò! d×&FÒ&FÜð8ô9àØ—‘ 1Ò$¨×)DÒ)DÜð8ô9àØrcóž—|jdk(r>|jr2|jjd«rt d|j«yy)Nr Ú$z' illegal name (starts with '$'): '%s'FT)rÃrZr¥ržrrCs rÚ set_ok_namezDefaultCookiePolicy.set_ok_nameãs?€ð �N‰N˜aÒ  D×$EÒ$EØ �K‰K× "Ñ " 3Ô 'Ü Ð<¸f¿k¹kÔ JØØrcóî—|jrit|«}|jdkDs|jdk(r@|jr4|j |j |«st d|j |«yy)Nr z7 path attribute %s is not a prefix of request path %sFT)rrýrÃr[rMrÁr)rrDrïÚreq_paths rÚ set_ok_pathzDefaultCookiePolicy.set_ok_pathìse€Ø × Ò Ü# GÓ,ˆHØ—‘ !Ò#Ø—.‘. AÒ%¨$×*AÒ*AØ×'Ñ'¨¯ © °WÔ=Üð!Ø"(§+¡+¨xô9àØrcóî—|j|j«rtd|j«y|j|j«rtd|j«y|j�rt |«\}}|j}|j rz|jd«dk\rf|jd«}|jdd|«}|dk(r=||dzd}||dz|} | j«dvrt|«dk(r td |«y|jd«r|dd} n|} | jd«dk\} | s|jd «s td |«y|jdk(rX|j|«sG|j| ›d �«s3|jd«s"d|zj|«std ||«y|jdkDs|j|j zrt#||«std ||«y|jdkDs|j|j$zrF|dt|« } | jd«dk\r#t&j)|«std| |«yy)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ÚmilrdÚ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)rirÀrrorr÷rVÚcountrÝroÚlenržrr»rÃrYÚDomainRFC2965MatchráÚDomainStrictNoDotsrÚrc) rrDrïrörõrÀràÚjÚtldÚsldÚundotted_domainÚ embedded_dotsÚ host_prefixs rÚ set_ok_domainz!DefaultCookiePolicy.set_ok_domain÷sO€Ø �?‰?˜6Ÿ=™=Ô )Ü Ð7¸¿¹Ô GØØ × Ñ ˜vŸ}™}Ô -Ü Ð;¸V¿]¹]Ô KØØ × "Ó "Ü-¨gÓ6‰NˆH�dØ—]‘]ˆFØ×!Ò! v§|¡|°CÓ'8¸AÒ'=ð—L‘L Ó%�Ø—L‘L  a¨Ó+�ؘ’6Ø   1¡ ˜,�CØ   1¡ Q˜-�CØ—y‘y“{ð''ñ'ô,/¨s«8°qª=äÐGÈÔPØ$Ø× Ñ  Ô%Ø"(¨¨ *‘à"(�Ø,×1Ñ1°#Ó6¸!Ñ;ˆMÙ ¨¯©°xÔ)@ÜÐHØôàØ�~‰~ Ò"ØŸ™ vÔ.ØŸ™¨/Ð):¸&Ð'AÔBØŸ™¨Ô-ؘd™(×,Ñ,¨VÔ4Üð?à ô)ð!Ø—‘ Ò"Ø×&Ñ&¨×)@Ñ)@Ò@Ü# D¨&Ô1Üð Ø!% vô/à Ø—‘ Ò"Ø×&Ñ&¨×)@Ñ)@Ò@Ø& }¬¨V«¨ Ð5� Ø×$Ñ$ SÓ)¨QÒ.ÜŸ™ xÔ0ÜÐKØ&¨ô0à Ørcó —|jrft|«}|€d}n t|«}|jj d«D]} t |«||k(sŒytd||j«yy#t $rtd|«YywxYw)NÚ80r—z bad port %s (not numeric)Fz$ request port (%s) not found in %sT)rrÚstrrÄrÉrdrpr©rrDrïÚreq_portr/s rÚ set_ok_portzDefaultCookiePolicy.set_ok_port3sš€Ø × Ò Ü# GÓ,ˆHØÐØ‘ä˜x›=�Ø—[‘[×&Ñ& sÖ+�ð!ܘ”Fð˜“=Øð ð,ôÐ=Ø §¡ô.àØøô"ò!ÜÐ9¸1Ô=Ú ð!úsÁ A4Á4B  B cóŒ—td|j|j«dD]}d|z}t||«}|||«rŒyy)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). rq)rÃrrrÂr¿rÄrÀÚ return_ok_FTrtrus rrGzDefaultCookiePolicy.return_okHsK€ô Ð)¨6¯;©;¸¿ ¹ ÔEãRˆAØ" 1‘nˆGܘ˜wÓ'ˆBÙ�f˜gÕ&Ùð Sð rcó —|jdkDr|js td«y|jdk(r|js td«yy)Nr rzFr{T)rÃrSrrRrCs rÚreturn_ok_versionz%DefaultCookiePolicy.return_ok_versionZsA€Ø �>‰>˜AÒ  d§l¢lÜ Ð9Ô :ØØ �^‰^˜qÒ ¨¯ªÜ Ð9Ô :ØØrcóΗ|jrYt|«rN|jdkDr|jr t d«y|jdk(r|j r t d«yyr~rrCs rÚreturn_ok_verifiabilityz+DefaultCookiePolicy.return_ok_verifiabilitycs]€Ø × Ò ¤N°7Ô$;Ø�~‰~ Ò! d×&FÒ&FÜð%ô&àØ—‘ 1Ò$¨×)DÒ)DÜð%ô&àØrcód—|jr$|j|jvr td«yy)Nz( secure cookie with non-secure requestFT)rÂÚtyper\rrCs rÚreturn_ok_securez$DefaultCookiePolicy.return_ok_secureos)€Ø �=Š=˜WŸ\™\°×1FÑ1FÑFÜ Ð=Ô >ØØrcóR—|j|j«r td«yy)Nz cookie expiredFT)r,Ú_nowrrCs rÚreturn_ok_expiresz%DefaultCookiePolicy.return_ok_expiresus#€Ø × Ñ ˜TŸY™YÔ 'Ü Ð&Ô 'ØØrcó¸—|jrNt|«}|€d}|jjd«D] }||k(sŒ ytd||j«yy)Nrªr—z0 request port %s does not match cookie port %sFT)rÄrrÉrr¬s rÚreturn_ok_portz"DefaultCookiePolicy.return_ok_port{sb€Ø �;Š;Ü# GÓ,ˆHØÐØ�Ø—[‘[×&Ñ& sÖ+�ؘ“=Øð ð,ôÐIØ §¡ô.àØrcó¬—t|«\}}|j}|r|jd«sd|z}n|}|jdk(r6|j|j zr|j s||k7r td«y|jdkDrt||«std||«y|jdk(r"d|zj|«std||«yy)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ÃrYÚDomainStrictNonDomainrrrár»)rrDrïrörõrÀÚ dotdomains rÚreturn_ok_domainz$DefaultCookiePolicy.return_ok_domain‰s×€Ü)¨'Ó2‰ˆ�$Ø—‘ˆá ˜&×+Ñ+¨CÔ0ؘf™ ‰IàˆIð �N‰N˜aÒ Ø × "Ñ " T×%?Ñ%?Ò ?Ø×'Ò'¨F°dªNÜ ð-ô .àà �>‰>˜AÒ ¤l°4¸Ô&@Ü ð/Ø04°fô >àØ �>‰>˜QÒ ¨¨D©×':Ñ':¸9Ô'EÜ ðØ! 6ô +àØrcól—t|«\}}|jd«sd|z}|jd«sd|z}|r|jd«sd|z}n|}|j|«s|j|«sy|j|«r t d|«y|j |«r t d|«yy)NrØFr‰rŠT)r÷ržr»rirro)rrÀrïrörõr¿s rrJz$DefaultCookiePolicy.domain_return_ok¤s³€ô*¨'Ó2‰ˆ�$Ø×"Ñ" 3Ô'ؘ8‘|ˆHØ�‰˜sÔ#Ø�t‘8ˆDÙ ˜&×+Ñ+¨CÔ0ؘf™ ‰IàˆIØ×!Ñ! )Ô,°· ± ¸iÔ0Hðà �?‰?˜6Ô "Ü Ð7¸Ô @ØØ × Ñ ˜vÔ &Ü Ð;¸VÔ DØàrcóÊ—td|«t|«}t|«}||k(ry|j|«r|j d«s |||dzdk(rytd||«y)Nz- checking cookie path=%sTrùr%z %s does not path-match %sF)rrýrŸržr»)rrÁrïr†Úpathlens rrMz"DefaultCookiePolicy.path_return_ok¾sj€ÜÐ*¨DÔ1Ü Ó(ˆÜ�d“)ˆØ �tÒ ØØ×!Ñ! $Ô'Ø�}‰}˜SÔ! X¨g°g¸a±iÐ%@ÀCÒ%GØäÐ,¨h¸Ô=Ør) r9r;r<r=r¡r¾r Ú DomainLiberalÚ DomainStrictrr`rfrirarlrorEr|r�r„r‡r¨r®rGr²r´r·rºr¼rÀrJrMr>rrrrjsÄÙLàÐØÐØÐà€MØ%Ð&;Ñ;€Lð"&°tبØ%)Ø#Ø$Ø-1Ø(-Ø"/Ø.3Ø$)Ø"2ó!0òF%ò7òò %ò0ò òò& ò òò ò:òxò*ò$ò òò ò òò6ó4 rrc#óÀK—t|j««D]-}d} |jd}t|«Ed{–—†|rŒ*|–—Œ/y7Œ#t$rYŒwxYw­w)z)Iterates over nested mapping, depth-firstFTN)ÚlistÚvaluesÚitemsÚ deepvaluesÚAttributeError)ÚmappingÚobjs rrÊrÊËsaèø€ä�G—N‘NÓ$Ö%ˆØˆð 'Ø �IŠIðˆGÜ! #“× &Ð &ÚØ‹Iñ&ð 'ùô ò Ù ð üs7‚A¢ A®A¾A ¿AÁAÁ AÁAÁAÁAcó —eZdZy)ÚAbsentN©r9r;r<r>rrrÏrÏÜó…rrÏcó€—eZdZdZej d«Zej d«Zej d«Zej d«Z ej d«Z ej dej«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!y) 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ój—|€ t«}||_tj«|_i|_yr!)rÚ_policyÚ _threadingÚRLockÚ _cookies_lockÚ_cookies©rÚpolicys rrzCookieJar.__init__ís.€Ø ˆ>Ü(Ó*ˆF؈Œ ä'×-Ñ-Ó/ˆÔ؈� rcó—||_yr!)rÔrÙs rÚ set_policyzCookieJar.set_policyõs €Øˆ� rcóœ—g}|jj||«sgStd|«|j|}|j «D]}}|jj ||«sŒ ||}|j «D]F}|jj||«s td«Œ+td«|j|«ŒHŒ|S)Nz!Checking %s for cookies to returnz not returning cookiez it's a match) rÔrJrrØÚkeysrMrÈrGr�)rrÀrïÚcookiesÚcookies_by_pathrÁÚcookies_by_namerDs rÚ_cookies_for_domainzCookieJar._cookies_for_domainøs¼€ØˆØ�|‰|×,Ñ,¨V°WÔ=؈IÜÐ2°FÔ;ØŸ-™-¨Ñ/ˆØ#×(Ñ(Ö*ˆDØ—<‘<×.Ñ.¨t°WÔ=ØØ-¨dÑ3ˆOØ)×0Ñ0Ö2�Ø—|‘|×-Ñ-¨f°gÔ>ÜÐ4Ô5ØÜÐ(Ô)Ø—‘˜vÕ&ñ 3ð +ðˆrcóŠ—g}|jj«D]#}|j|j||««Œ%|S)z2Return a list of cookies to be returned to server.)rØrÞÚextendrâ)rrïrßrÀs rÚ_cookies_for_requestzCookieJar._cookies_for_request s<€àˆØ—m‘m×(Ñ(Ö*ˆFØ �N‰N˜4×3Ñ3°F¸GÓDÕ Eð+àˆrcó”—|jd„d¬«d}g}|D�]©}|j}|sd}|dkDr|jd|z«|j�Q|jj |j«r,|dkDr'|j jd|j«}n |j}|j€|j|j«n |j|j›d |›�«|dkDsŒä|jr|jd |jz«|jjd «rB|j}|js|jd «r|d d}|jd |z«|j€�Œyd}|jr|d|jzz}|j|«�Œ¬|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¡v¤;rT)rÒÚreverseFr z $Version=%sNr¬r­z $Path="%s"rØr%z $Domain="%s"z$Portz="%s")ÚsortrÃr�r¦Ú non_word_rercÚquote_rer†r¥rrÁrÀržrrÄr) rrßrÏÚattrsrDrÃr¦rÀr/s rÚ _cookie_attrszCookieJar._cookie_attrss„€ð � ‰ Ñ.¸ˆ Ô=àˆ àˆÜˆFð—n‘nˆGÙØ"� ؘQ’;Ø—L‘L °Ñ!8Ô9ð —‘Ð)Ø× Ñ ×'Ñ'¨¯ © Ô5¸'ÀAº+ØŸ ™ ×)Ñ)¨'°6·<±<Ó@‘àŸ ™ �ð�|‰|Ð#Ø— ‘ ˜VŸ[™[Õ)à— ‘ ¨¯ « ±UÐ;Ô<ؘ‹{Ø×(Ò(Ø—L‘L °· ± Ñ!;Ô<Ø—=‘=×+Ñ+¨CÔ0Ø#Ÿ]™]�FØ"×5Ò5Ø×)Ñ)¨#Ô.Ø!'¨¨ ˜Ø—L‘L °&Ñ!8Ô9Ø—;‘;Ò*Ø�AØ×,Ò,Ø ¨6¯;©;Ñ!6Ñ7˜Ø—L‘L –OðQðTˆ rcó—td«|jj« tt j««x|j _|_|j|«}|j|«}|r2|jd«s!|jddj|««|j jrQ|j js;|jd«s*|D]%}|jdk7sŒ|jdd«n|jj«|j!«y#|jj«wxYw)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×ÚacquirerdrqrÔr¹rårïÚ has_headerÚadd_unredirected_headerr±rSrUrÃÚreleaseÚclear_expired_cookies)rrïrßrîrDs rrñzCookieJar.add_cookie_headerLs€ô Ð"Ô#Ø ×Ñ×"Ñ"Ô$ð )ä,/´· ± ³ Ó,<Ð <ˆD�L‰LÔ  ¤ à×/Ñ/°Ó8ˆGà×&Ñ& wÓ/ˆEÙØ×)Ñ)¨(Ô3Ø×3Ñ3Ø  $§)¡)¨EÓ"2ô4ð— ‘ ×$Ò$¨T¯\©\×-FÒ-FØ×&Ñ& yÔ1Û%�FØ—~‘~¨Ó*Ø×7Ñ7¸ À>ÔRÙð&ð × Ñ × &Ñ &Ô (à ×"Ñ"Õ$øð × Ñ × &Ñ &Õ (ús§CEÄEÅEcó(—g}d}d}|D]é}|d\}}d}d} i} i} |ddD]·\} } | j«}||vs||vr|} | |vr| €d} | | vrŒ-| dk(r!| €td «d} nw| j«} | d k(r|rŒ[| € td «Œi| d k(rd} t| «} d } |j| z} | |vs| |vr| €| dvrtd| z«d} n | | | <Œ³| | | <Œ¹| rŒÕ|j ||| | f«Œë|S#t$rtd «d} YŒ5wxYw)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)rorrdrpr¹r�)rÚ attrs_setÚ cookie_tuplesÚ boolean_attrsÚ value_attrsÚ cookie_attrsr¥r¦Ú max_age_setÚ bad_cookieÚstandardrrµr¶rÕs rÚ_normalized_cookie_tuplesz#CookieJar._normalized_cookie_tuplesms¥€ðˆ à+ˆ ð0ˆ ó &ˆLØ& q™/‰KˆD�%ð ˆKàˆJàˆH؈DØ$ Q RÓ(‘��1Ø—W‘W“Y�à˜Ñ$¨¨mÑ(;Ø�Aؘ Ñ%¨!¨)ð�Aؘ‘=àØ˜’=Ø�yÜÐFÔGØ%)˜ ÙàŸ™› �Aؘ ’>Ù"à Ø�yÜð FôGà Ø˜ ’>Ø"&�KðÜ ›F˜ð"�AØŸ ™  A™ �AؘÑ$¨!¨}Ñ*<ؘ ØÐ!BÑBÜÐBÀQÑFÔGØ%)˜ ÙØ"#�H˜Q’Kà�D˜’Gðe)ñhØà × Ñ  $¨¨x¸Ð!>Õ ?ðQ&ðTÐøô5&òÜð 2ô3à%)˜ Úð ús C7Ã7DÄDcóR—|\}}}}|jdt«}|jdt«}|jdt«} |jdt«} |jdd«} | � t| «} |jdd«} |jdd«} |jd d«}|jd d«}|tur|d k7rd }t |«}nFd}t |«}|j d «}|dk7r| dk(r|d|}n|d|dz}t|«dk(rd }|tu}d}|rt|jd««}|turt|«\}}|}n|jd«sd|z}d}| tur(| € t|«} nd }tjdd | «} nd} | turd} d } n2| |jkr# |j|||«t#d|||«yt%| ||| ||||||| | | |||«S#t$rYywxYw#t $rYŒCwxYw)NrÀrÁrÄr¿rÃrÂFrrrùrTrùrºr r%rØz\s+z2Expiring cookie, domain='%s', path='%s', name='%s')r%rÏrdrprûrýrÝrŸÚboolržr÷rrŸr†r¹ÚclearÚKeyErrorrr)rÚtuprïr¥r¦rrrÀrÁrÄr¿rÃrÂrrrrràrrrörõrs rÚ_cookie_from_cookie_tuplez#CookieJar._cookie_from_cookie_tupleÎsv€ð'*Ñ#ˆˆe�X˜tà—‘˜h¬Ó/ˆØ�|‰|˜F¤FÓ+ˆØ�|‰|˜F¤FÓ+ˆØ—,‘,˜y¬&Ó1ˆð—,‘,˜y¨$Ó/ˆØ Ð ð ܘg›,�𗑘h¨Ó.ˆà—,‘,˜y¨%Ó0ˆØ—,‘,˜y¨$Ó/ˆØ—l‘l <°Ó6ˆ ð ”vÑ  $¨"¢*Ø!ˆNܘtÓ$‰Dà"ˆNÜ Ó(ˆDØ— ‘ ˜3“ˆAØ�BŠwؘa’<à  ˜8‘Dà   1¡˜:�DÜ�4‹y˜AŠ~ c˜tð"¬Ð/Ðà"ÐÙ Ü!% f×&7Ñ&7¸Ó&<Ó!=Ð Ø ”VÑ Ü-¨gÓ6‰NˆH�d؉FØ×"Ñ" 3Ô'ؘ‘ZˆFðˆØ ”vÑ Øˆ|ô$ GÓ,‘à!%�Ü—v‘v˜f b¨$Ó/‘ðˆDð ”fÑ ØˆG؉GØ ˜Ÿ ™ Ò !ð Ø— ‘ ˜6 4¨Ô.ô ÐGؘ4 ô 'àä�gؘEؘNØÐ.Ð0BؘNØØØØØ!Øó ð øôCò Ùð ûôvò Ùð ús$Á5 H ÇHÈ HÈHÈ H&È%H&có†—|j|«}g}|D](}|j||«}|sŒ|j|«Œ*|Sr!)rrr�)rrúrïrûrßrrDs rÚ_cookies_from_attrs_setz!CookieJar._cookies_from_attrs_set*sH€Ø×6Ñ6°yÓAˆ àˆÛ ˆCØ×3Ñ3°C¸ÓAˆFÚ�w—~‘~ fÕ-ð!ðˆrcó´—t|jdd«}|€|jj }|D]#}|jdk(sŒd|_|sŒd|_Œ%y)NrTr%Tr )r6rÔrSrÃr)rrßÚ rfc2109_as_nsrDs rÚ_process_rfc2109_cookiesz"CookieJar._process_rfc2109_cookies3sV€Ü § ¡ Ð.CÀTÓJˆ Ø Ð Ø $§ ¡ × 4Ñ 4Ð4ˆMÛˆFØ�~‰~ Ó"Ø!%�”Ú ð&'�F•Nñ rcó—|j«}|jdg«}|jdg«}ttj««x|j_|_|jj }|jj}|s|r |s|r|s|r|s|sgS |jt|«|«}|r„|r‚ |jt|«|«} |j| «|r@i} |D](} d| | j| j| j f<Œ*| fd„} t#| | «} | r|j%| «|S#t$rt«g}YŒŸwxYw#t$rt«g} YŒšwxYw)zAReturn sequence of Cookie objects extracted from response object.z Set-Cookie2z Set-CookieNcóP—|j|j|jf}||vSr!)rÀrÁr¥)Ú ns_cookieÚlookuprÒs rÚno_matching_rfc2965z3CookieJar.make_cookies..no_matching_rfc2965ls'€Ø#×*Ñ*¨I¯N©N¸I¿N¹NÐJ�CØ fÐ,Ð,r)r—Úget_allrdrqrÔr¹rSrRr r©Ú Exceptionr"rÖr rÀrÁr¥Úfilterrä) rÚresponserïr³Ú rfc2965_hdrsÚns_hdrsrSrRrßÚ ns_cookiesrrDrs rÚ make_cookieszCookieJar.make_cookies?sp€ð—-‘-“/ˆØ—‘ }°bÓ9ˆ Ø—/‘/ ,°Ó3ˆÜ(+¬D¯I©I«KÓ(8Ð8ˆ� ‰ Ô˜DœIà—,‘,×&Ñ&ˆØ—<‘<×(Ñ(ˆá¡g١١hÙ¡'؈Ið Ø×2Ñ2Ü" <Ó0°'ó;ˆGñ ‘xð à!×9Ñ9Ü$ WÓ-¨wó8� ð × )Ñ )¨*Ô 5ñØ�Û%�FØHL�F˜FŸM™M¨6¯;©;¸¿ ¹ ÐDÒEð&ð;Aó-ô$Ð$7¸ÓD� áØ—‘˜zÔ*àˆøôCò Ü %Ô 'ØŠGð ûôò Ü)Ô+Ø’ ð ús$Â'E ÃE%Å E"Å!E"Å%E=Å<E=cól—|jj« ttj««x|j_|_|jj ||«r|j|«|jj«y#|jj«wxYw)z-Set a cookie if policy says it's OK to do so.N) r×rórdrqrÔr¹rEÚ set_cookierörCs rÚset_cookie_if_okzCookieJar.set_cookie_if_okvs~€à ×Ñ×"Ñ"Ô$ð )Ü,/´· ± ³ Ó,<Ð <ˆD�L‰LÔ  ¤ à�|‰|×"Ñ" 6¨7Ô3Ø—‘ Ô'ð × Ñ × &Ñ &Õ (øˆD× Ñ × &Ñ &Õ (ús œA BÂB3có’—|j}|jj« |j|vri||j<||j}|j|vri||j<||j}|||j <|jj «y#|jj «wxYw)z?Set a cookie, without checking whether or not it should be set.N)rØr×rórÀrÁr¥rö)rrDÚcÚc2Úc3s rrzCookieJar.set_cookieƒs €à �M‰MˆØ ×Ñ×"Ñ"Ô$ð )Ø�}‰} AÑ%¸" q¨¯©Ñ'7Ø�6—=‘=Ñ!ˆBØ�{‰{ "Ñ$¸ b¨¯©¡oØ�F—K‘K‘ˆBØ$ˆBˆv�{‰{‰Oà × Ñ × &Ñ &Õ (øˆD× Ñ × &Ñ &Õ (ús ¨A'B*Â*Ccó„—td|j««|jj« |j ||«D]<}|j j ||«sŒ td|«|j|«Œ> |jj«y#|jj«wxYw)zAExtract cookies from response, where allowable given the request.zextract_cookies: %sz setting cookie: %sN) rr—r×rórrÔrErrö)rrrïrDs rÚextract_cookieszCookieJar.extract_cookies�s“€äÐ$ h§m¡m£oÔ6Ø ×Ñ×"Ñ"Ô$ð )Ø×+Ñ+¨H°gÖ>�Ø—<‘<×&Ñ& v¨wÕ7ÜÐ0°&Ô9Ø—O‘O FÕ+ñ?ð × Ñ × &Ñ &Õ (øˆD× Ñ × &Ñ &Õ (ús¶1B#Á(B#Â#B?có¼—|�#|�|€ td«‚|j|||=y|�|€ td«‚|j||=y|�|j|=yi|_y)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)rprØ)rrÀrÁr¥s rrzCookieJar.clearœs‚€ð Ð Ø� D LÜ ØNóPðPà— ‘ ˜fÑ% dÑ+¨DÑ1Ø Ð Øˆ~Ü ØDóFðFà— ‘ ˜fÑ% dÑ+Ø Ð Ø— ‘ ˜fÑ%àˆD�Mrcó8—|jj« |D]@}|jsŒ|j|j|j |j «ŒB |jj«y#|jj«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ö)rrDs rÚclear_session_cookieszCookieJar.clear_session_cookies·so€ð ×Ñ×"Ñ"Ô$ð )Û�Ø—>“>Ø—J‘J˜vŸ}™}¨f¯k©k¸6¿;¹;ÕGñð × Ñ × &Ñ &Õ (øˆD× Ñ × &Ñ &Õ (úsœA=®3A=Á=Bcój—|jj« tj«}|D]E}|j|«sŒ|j |j |j |j«ŒG |jj«y#|jj«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órqr,rrÀrÁr¥rö)rrKrDs rr÷zCookieJar.clear_expired_cookiesÆs�€ð ×Ñ×"Ñ"Ô$ð )Ü—)‘)“+ˆCÛ�Ø×$Ñ$ SÕ)Ø—J‘J˜vŸ}™}¨f¯k©k¸6¿;¹;ÕGñð × Ñ × &Ñ &Õ (øˆD× Ñ × &Ñ &Õ (úsœ*BÁ3BÂB2có,—t|j«Sr!)rÊrØrcs rÚ__iter__zCookieJar.__iter__Ùs€Ü˜$Ÿ-™-Ó(Ð(rcó"—d}|D]}|dz}Œ |S)z#Return number of contained cookies.r r%r>)rràrDs rÚ__len__zCookieJar.__len__Üs€à ˆÛˆF  A¡™A�d؈rcó —g}|D]}|jt|««Œd|jj›ddj |«›d�S©NÚ<Ú[r¯z]>)r�r7r8r9r±©rÚrrDs rr:zCookieJar.__repr__âs:€Ø ˆÛˆF˜AŸH™H¤T¨&£\Õ2‘dØ!Ÿ^™^×4Ó4°d·i±iÀµlÐCÐCrcó —g}|D]}|jt|««Œd|jj›ddj |«›d�Sr-)r�r«r8r9r±r0s rr2zCookieJar.__str__çs:€Ø ˆÛˆF˜AŸH™H¤S¨£[Õ1‘dØ!Ÿ^™^×4Ó4°d·i±iÀµlÐCÐCrr!)NNN)"r9r;r<r=rŸÚcompilerìríÚstrict_domain_reÚ domain_reÚdots_reÚASCIIÚmagic_rerrÜrârårïrñrrr r rrrr#rr&r÷r)r+r:r2r>rrrrÞsã„ñð �"—*‘*˜UÓ#€K؈r�z‰z˜+Ó&€HØ!�r—z‘z +Ó.ÐØ�— ‘ ˜8Ó$€I؈b�j‰j˜Ó!€Gàˆr�z‰zÐ6¸¿¹ÓA€Hóòòò$ò9òv%òB_òBZòxò 'ò5òn )ò )ò )óò6 )ò)ò&)òò Dó Drrcó —eZdZy)rNrÐr>rrrrîrÑrrcó4—eZdZdZdd„Zdd„Zdd„Z dd„Zy) rz6CookieJar that can be loaded from and saved to a file.NcóŒ—tj||«|�tj|«}||_t |«|_y)z} Cookies are NOT loaded from the named file until either the .load() or .revert() method is called. N)rrÚosÚfspathÚfilenamerÚ delayload)rr>r?rÚs rrzFileCookieJar.__init__ós:€ô ×ј4 Ô(Ø Ð Ü—y‘y Ó*ˆHØ ˆŒ ܘi›ˆ�rcó—t«‚)zSave cookies to a file.rA)rr>Úignore_discardÚignore_expiress rÚsavezFileCookieJar.saveÿrHrcóÀ—|€(|j� |j}ntt«‚t|«5}|j ||||«ddd«y#1swYyxYw)zLoad cookies from a file.N)r>rpÚMISSING_FILENAME_TEXTÚopenÚ _really_load©rr>rArBr s rÚloadzFileCookieJar.loadsM€à Ð Ø�}‰}Ð(°T·]±]©(Ü"Ô#8Ó9Ð9ä �(Œ^˜qØ × Ñ ˜a ¨>¸>Ô J÷�^‰^ús ¶AÁAcó —|€(|j� |j}ntt«‚|jj « t j |j«}i|_ |j|||« |jj«y#t$r ||_‚wxYw#|jj«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) r>rprEr×rórÚdeepcopyrØrIÚOSErrorrö)rr>rArBÚ old_states rÚrevertzFileCookieJar.revert s±€ð Ð Ø�}‰}Ð(°T·]±]©(Ü"Ô#8Ó9Ð9à ×Ñ×"Ñ"Ô$ð )äŸ ™  d§m¡mÓ4ˆI؈DŒMð Ø— ‘ ˜( N°NÕCð × Ñ × &Ñ &Õ (øô ò Ø )�” Øð ûð × Ñ × &Ñ &Õ (úsÁ&B1Á-BÂB.Â.B1Â1C )NFN©NFF)r9r;r<r=rrCrIrNr>rrrrðs"„Ù@ó )ó$óKð#Ø49ô)rrcó—|j|jfd|jfd|jfg}|j�|j d|jf«|j r|j d«|jr|j d«|jr|j d«|jr|j d«|jr/|j dtt|j««f«|jr|j d «|jr|j d |jf«|jr|j d |jf«t!|j"j%««}|D]+}|j |t'|j"|«f«Œ-|j 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ÀrÄ)Ú path_specN)Ú port_specN)Ú domain_dotN)rÂNr¿)rNrrùrÃ)r¥r¦rÁrÀrÄr�rrrrÂr¿rTrƒrrrÚsortedrrÞr«rÃr·)rDr rÞrµs rÚlwp_cookie_strrU's†€ð �+‰+�v—|‘|Ð $Ø �&—+‘+Ð Ø �F—M‘MÐ "ð $€Að‡{�{Р§¡¨&°&·+±+Ð)>Ô ?Ø ×Ò˜aŸh™hÐ':Ô;Ø ×Ò˜aŸh™hÐ':Ô;Ø × Ò  !§(¡(Ð+?Ô"@Ø ‡}‚}�a—h‘hÐ/Ô0Ø ‡~‚~�q—x‘x Ü(¬¨v¯~©~Ó)>Ó?ð!AôBà ‡~‚~�q—x‘xÐ 1Ô2Ø ‡~‚~�q—x‘x ¨F¯N©NÐ ;Ô<Ø ×Ò˜1Ÿ8™8 \°6×3EÑ3EÐ$FÔGä �&—,‘,×#Ñ#Ó%Ó &€DÛ ˆØ �‰�!”S˜Ÿ™ a™Ó)Ð*Õ+ðð‡H�Hˆiœ˜VŸ^™^Ó,Ð -Ô.ä ˜a˜SÓ !Ð!rcó&—eZdZdZdd„Zdd„Zd„Zy)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) cóæ—tj«}g}|D]B}|s |jrŒ|s|j|«rŒ&|jdt |«z«ŒDdj |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)rqrr,r�rUr±)rrArBrKr1rDs rÚ as_lwp_strzLWPCookieJar.as_lwp_strPsk€ô �i‰i‹kˆØ ˆÛˆFÙ! f§n¢nØÙ! f×&7Ñ&7¸Ô&<ØØ �H‰HÐ&¬¸Ó)?Ñ?Õ @ð ð �y‰y˜˜B˜4™Ó Ð rNcóœ—|€(|j� |j}ntt«‚tjtj |tj tjztjzd«d«5}|jd«|j|j||««ddd«y#1swYyxYw)Né€Úwz#LWP-Cookies-2.0 ) r>rprEr<ÚfdopenrFÚO_CREATÚO_WRONLYÚO_TRUNCÚwriterYrHs rrCzLWPCookieJar.save`s–€Ø Ð Ø�}‰}Ð(°T·]±]©(Ü"Ô#8Ó9Ð9ä �Y‰YÜ �G‰G�HœbŸj™j¬2¯;©;Ñ6¼¿¹ÑCÀUÓ KØ ô ðð �G‰GÐ(Ô )Ø �G‰G�D—O‘O N°NÓCÔ D÷ ÷ ñ ús Â3CÃC cóJ—|j«}|jj|«sd|z}t|«‚t j«}d}d} d} |j«x} dk7�r†| j |«sŒ(| t |«dj«} t| g«D�]0} | d\} }i}i}| D]}d||<Œ | ddD]A\}}|�|j«}nd}|| vs|| vr|}|| vr |€d }|||<Œ3|| vr|||<Œ=|||<ŒC|j}|d «}|d «}|� t|«}|€d }|d «}|j d «}t|d«| ||d«|d«|||d«|d«|d«|d«|||d«|d«|«}|s|jr�Œ |s|j|«r�Œ |j|«�Œ3|j«x} dk7r�Œ…yy#t $r‚t"$rt%«td|›d ›�«‚wxYw)Nz5%r does not look like a Set-Cookie3 (LWP) format filez Set-Cookie3:)rRrQrSrÂr)rÃrÄrÁrÀr¿rrùrr Fr%Tr¿rrÀrØrÃrÄrRrSrÁrQrÂrrùz invalid Set-Cookie3 format file ú: )Úreadliner8rcrrqržrŸrÊr©ror%rŽrrr,rrLrr")rr r>rArBÚmagicr!rKÚheaderrürýÚlineÚdatar¥r¦rrrµr¶rÕr r¿rrÀrrs rrGzLWPCookieJar._really_loadosf€Ø— ‘ “ ˆØ�}‰}×#Ñ# EÔ*ðØ$ñ%ˆCä˜C“.Ð ä�i‰i‹kˆàˆð.ˆ ð0ˆ ð 9 .ØŸ:™:›<Ð'�4¨BÓ.Ø—‘ vÔ.ØØœC ›K˜LÐ)×/Ñ/Ó1�ä.°¨v×6�DØ"& q¡'‘K�D˜%Ø!�HØ�DÛ*˜Ø&+˜ š ð+à $ Q R£™˜˜1ؘ=Ø!"§¡£™Bà!%˜Bà +Ñ-°2¸Ñ3FØ "˜AØ  Ñ-Ø ˜y¨d¨!Ø*+˜H QšKØ +Ñ-Ø*+˜H QšKà&'˜D šGð!)ð !Ÿ ™ �AÙ  ›l�GÙ  ›l�GØÐ*Ü"*¨7Ó"3˜Ø�Ø"&˜Ù˜x›[�FØ'-×'8Ñ'8¸Ó'=Ð$Ü™q ›|¨T°5Ù  ›y©!¨K«.Ø%Ð'7¹¸<»Ù  ›y©!¨K«.Ù  ›{Ø&Ø&Ù  ›|Ù  ›Ø#ó %�Añ*¨a¯iªiÙ Ù)¨a¯l©l¸3Ô.?Ù Ø—O‘O AÖ&ð[7ð Ÿ:™:›<Ð'�4¨BÖ.øôfò Ø Üò .Ü %Ô 'ÝÚ%¡tð-ó.ð .ð .ús ÁFG4Ç4.H")TTrO)r9r;r<r=rYrCrGr>rrrrCs„ñ ó!ó EóJ.rrcó—eZdZdZd„Zdd„Zy)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ót—tj«}tj|j««st d|z«‚ |j«x}dk7�r+i}|j t «rd|t<|tt «d}|jd«r|dd}|j«j d«s|j«dk(rŒ‘|jd«\}} } } } } }| dk(} | dk(} | dk(r|} d}|j d«}d }| dk(rd} d }td | |dd || || d | | |dd|«}|s|jr�Œ|s|j|«r�Œ|j|«|j«x}dk7r�Œ*yy#t $r‚t"$rt%«t d |›d ›�«‚wxYw)Nz4%r does not look like a Netscape format cookies filerrXrº)Ú#rƒÚ ÚTRUErØFTr z%invalid Netscape format cookies file rc)rqÚNETSCAPE_MAGIC_RGXr’rdrržÚHTTPONLY_PREFIXÚ HTTPONLY_ATTRrŸr»rÊrÉrrr,rrLrr")rr r>rArBrKrgrrÀrrÁrÂr¿r¥r¦rårrs rrGzMozillaCookieJar._really_loadÜsã€Ü�i‰i‹kˆä!×'Ñ'¨¯ © « Ô5ÜØFØñóð ð< .ØŸ:™:›<Ð'�4¨BÓ.Ø�ð —?‘?¤?Ô3Ø*,�DœÑ'ؤ¤OÓ 4Ð 5Ð6�Dð—=‘= Ô&¨t°C°R¨y¨ð—J‘J“L×+Ñ+¨JÔ7Ø—J‘J“L BÒ&ØðŸ ™  4Ó(ñM�Ð(¨$°¸ÀÀuà  FÑ*�Ø$4¸Ñ$>Рؘ2’:ð!�DØ �Eà$×/Ñ/°Ó4� ð �ؘb’=Ø"�GØ"�Gô˜1˜d EØ Ø!Ð#3°[Ø Ø!Ø"Ø"ØØØó !�ñ&¨!¯)ª)ÙÙ%¨!¯,©,°sÔ*;ÙØ—‘ Ô"ðiŸ:™:›<Ð'�4¨BÖ.øôlò Ø Üò .Ü %Ô 'ÝÚ%¡tð-ó.ð .ð .ús ÁD>F Æ .F7Nc óœ—|€(|j� |j}ntt«‚tjtj |tj tjztjzd«d«5}|jt«tj«}|D�]}|j}|s |jrŒ|s|j|«rŒ3|jrd}nd}|j!d«rd} nd} |j"�t%|j"«} nd} |j&€d} |j(} n|j(} |j&} |j+t,«r t.|z}|jdj1|| |j2|| | | g«dz«�Œ ddd«y#1swYyxYw) Nr[r\rmÚFALSErØrrlrX)r>rprEr<r]rFr^r_r`raÚNETSCAPE_HEADER_TEXTrqrÀrr,rÂržr¿r«r¦r¥r#rpror±rÁ) rr>rArBr rKrDrÀrÂrår¿r¥r¦s rrCzMozillaCookieJar.save"sz€Ø Ð Ø�}‰}Ð(°T·]±]©(Ü"Ô#8Ó9Ð9ä �Y‰YÜ �G‰G�HœbŸj™j¬2¯;©;Ñ6¼¿¹ÑCÀUÓ KØ ô ðØ �G‰GÔ(Ô )Ü—)‘)“+ˆCÜ�ØŸ™�Ù%¨&¯.ª.ØÙ%¨&×*;Ñ*;¸CÔ*@ØØ—=’=¨6¡&Ø&�fØ×$Ñ$ SÔ)¸©;Ø$+�kØ—>‘>Ð-Ü! &§.¡.Ó1‘Gà �GØ—<‘<Ð'ð�DØ"ŸK™K‘Eà!Ÿ;™;�DØ"ŸL™L�EØ×.Ñ.¬}Ô=Ü,¨vÑ5�FØ—‘Ø—I‘I˜v {°F·K±KØ% w°°eð=ó>àñöñ3÷  ÷ ñ ús ÂD2GÇG rO)r9r;r<r=rGrCr>rrr r ¼s„ñò>D.ôL'rr r!)Yr=Ú__all__r<rrJrŸrqÚ urllib.parserêÚurllib.requestÚ threadingrÕÚ http.clientÚhttpÚcalendarr r rrrpror«ÚclientÚ HTTP_PORTrr3rnrErsr"r+r3rVrXrormrTrYrar7rbrhr{r�ÚIr…ÚXr‡rŠrŒrŽr•r˜r™r›ršr©r°r·r½rÖrÚrÛrárãrærîròr÷rýrrrrrûr rrrrrÊrÏrrLrrrUrr )r.s0rÚrsðñò6 M€ó Û ÛÛ Û ß#ÛÛÝà €Ø €òð€ Ø€Ù˜Ÿ ™ ×-Ñ-Ó.ÐØ�R—Z‘ZÐ @ÓAÐð:ÐðÐòAð€ òò9€ò 4€á+1Ó2©6 %�— ‘ • ¨6Ñ2€ óBó&0ð( ¨T¸Ñ =€ àˆb�j‰jÐ5°r·x±xÓ@€ ò ò6 ðp�—‘ð,Ø-/¯X©Xó7€ðˆR�Z‰ZØ2°B·D±D¸2¿8¹8±OóE€ à�R—Z‘Zð ð& �D‰D�2—8‘8‰Oó)Ðò*65ðpˆb�j‰jð ð �4‰4�"—)‘)Ñ ó#€ ò$5òB3ð $˜Ÿ™Ð$6Ó7€Ø#˜Ÿ™Ð$MÓNÐØ#˜Ÿ™Ð$9Ó:€Ø�2—:‘:˜hÓ'ÐòSðj#˜Ÿ ™  ;Ó/Ðòò2òAðH ˆ"�*‰*�Y §¡Ó )€ò ò%òNòð(ˆb�j‰j˜ 2§8¡8Ó,€ òò òò ð $€Ø�"—*‘*Ð9Ó:€ò+ò ò! òF÷"_Eñ_E÷DñôB_˜,ô_òB ÷"Ñ÷LDñLDô`�Ôô4)�Iô4)òn"ô8v.�=ôv.ôrM�}õMùòA;3sÂJ0