관리-도구
편집 파일: cookiejar.cpython-310.opt-1.pyc
o 6��fg. � @ s� d Z g d�ZddlZddlZddlZddlZddlZddlZddl Zddl ZddlZ ddlmZ dZdadd� ZdZd Zee jj�Ze�d �ZdZdZd d� ZdZdd� Zg d�Z g d�Z!g Z"e!D ] Z#e"�$e#�%� � qadidd�Z&didd�Z'ddddd�Z(e�dej)�Z*dd� Z+dd� Z,e�dej)�Z-e�dej.ej)B �Z/e�d ej0ej)B �Z1d!d"� Z2e�d#ej0ej)B �Z3d$d%� Z4d&d'� Z5e�d(�Z6e�d)�Z7e�d*�Z8e�d+�Z9d,d-� Z:e�d.�Z;d/d0� Z<d1d2� Z=d3d4� Z>e�d5ej)�Z?d6d7� Z@d8d9� ZAd:d;� ZBd<d=� ZCe�d>ej)�ZDd?d@� ZEdAdB� ZFdCdD� ZGdEdF� ZHdGZIe�dH�ZJdIdJ� ZKdKdL� ZLdMdN� ZMdOdP� ZNG dQdR� dR�ZOG dSdT� dT�ZPG dUdV� dVeP�ZQdWdX� ZRdYdZ� ZSG d[d\� d\�ZTG d]d^� d^�ZUG d_d`� d`eV�ZWG dadb� dbeU�ZXdcdd� ZYG dedf� dfeX�ZZG dgdh� dheX�Z[dS )ja� 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 G s( t sd S tsdd l}|�d�atj | � S )Nr zhttp.cookiejar)�debug�logger�loggingZ getLogger)�argsr � r �5/opt/alt/python310/lib64/python3.10/http/cookiejar.py�_debug, s r ZHTTPOnlyz #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 C sJ dd l } dd l}dd l}| �� }|�d |� |�� }|jd| dd� d S )Nr zhttp.cookiejar bug! %s� )� stacklevel)�io�warnings� traceback�StringIO� print_exc�getvalue�warn)r r r �f�msgr r r �_warn_unhandled_exceptionB s r i� c C s� | d d� \}}}}}}|t krTd| krdkrTn d S d| kr'dkrTn d S d| kr4dkrTn d S d| krAdkrTn d S d| krQdkrTt| �S d S d S ) N� � � � r � �; �= )� EPOCH_YEARr )�tt�year�monthZmday�hour�min�secr r r �_timegmQ s �����r, )ZMonZTueZWedZThuZFriZSatZSun)ZJanZFebZMarZAprZMayZJunZJulZAugZSepZOctZNovZDecc C s@ | du r t j �� }nt j �| �}d|j|j|j|j|j|jf S )aH 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 "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'