Current Path : /compat/linux/proc/68247/root/usr/local/lib/python2.5/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/proc/68247/root/usr/local/lib/python2.5/_MozillaCookieJar.pyc |
³ò h”Rc @ s` d Z d d k Z d d k Z d d k l Z l Z l Z l Z l Z d e f d „ ƒ YZ d S( s+ Mozilla / Netscape cookie loading / saving.iÿÿÿÿN( t _warn_unhandled_exceptiont FileCookieJart LoadErrort Cookiet MISSING_FILENAME_TEXTt MozillaCookieJarc B s5 e Z d Z d Z d Z d „ Z d e e d „ Z RS( s’ 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. lynx uses 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). s #( Netscape)? HTTP Cookie FilesŠ # Netscape HTTP Cookie File # http://www.netscape.com/newsref/std/cookie_spec.html # This is a generated file! Do not edit. c C s+ t i ƒ } | i ƒ } t i | i | ƒ p | i ƒ t d | ƒ ‚ n y“xŒ| i ƒ } | d j o Pn | i d ƒ o | d } n | i ƒ i d ƒ p | i ƒ d j o qR n | i d ƒ \ } } } } } } } | d j } | d j } | d j o | } d } n | i d ƒ } | | j p t ‚ t } | d j o d } t } n t d | | d t | | | | t | | | d d h ƒ } | o | i o qR n | o | i | ƒ o qR n | i | ƒ qR WnE t j o ‚ n1 t j o$ t ƒ t d | | f ƒ ‚ n Xd S( Ns4 %r does not look like a Netscape format cookies filet s iÿÿÿÿt #t $s t TRUEt .i s+ invalid Netscape format cookies file %r: %r( R R ( t timet readlinet ret searcht magic_ret closeR t endswitht stript startswitht splitt Nonet AssertionErrort Falset TrueR t discardt is_expiredt set_cookiet IOErrort ExceptionR ( t selft ft filenamet ignore_discardt ignore_expirest nowt magict linet domaint domain_specifiedt patht securet expirest namet valuet initial_dotR t c( ( s- /usr/local/lib/python2.5/_MozillaCookieJar.pyt _really_load/ sd $ c C s” | d j o- | i d j o | i } q: t t ƒ ‚ n t | d ƒ } z9| i | i ƒ t i ƒ } x| D]} | o | i o qo n | o | i | ƒ o qo n | i o d } n d } | i i d ƒ o d } n d } | i d j o t | i ƒ } n d } | i d j o d } | i } n | i } | i } | i d i | i | | i | | | | g ƒ d ƒ qo WWd | i ƒ Xd S( Nt wR t FALSER R s s ( R R t ValueErrorR t opent writet headerR R R R) R&