File: //lib64/python3.6/http/__pycache__/cookiejar.cpython-36.pyc
3
TSer+ @ s* d Z ddddddddgZd d
lZd d
lZd d
lZd d
lZd d
lZd d
lZyd d
l Z
W n ek
rp d d
lZ
Y nX d d
l
Zd dlmZ dZd
ad
d ZeejjZdZdd ZdZdd ZdddddddgZddddd d!d"d#d$d%d&d'gZg ZxeD ]Zej ej! qW dud(d)Z"dvd*d+Z#d
d
d
d
d,Z$ej%d-ej&Z'd.d/ Z(d0d1 Z)ej%d2ej&Z*ej%d3ej+ej&B Z,ej%d4ej-ej&B Z.d5d6 Z/ej%d7ej-ej&B Z0d8d9 Z1d:d; Z2ej%d<Z3ej%d=Z4ej%d>Z5ej%d?Z6d@dA Z7ej%dBZ8dCdD Z9dEdF Z:dGdH Z;ej%dIej&Z<dJdK Z=dLdM Z>dNdO Z?dPdQ Z@ej%dRej&ZAdSdT ZBdUdV ZCdWdX ZDdYdZ ZEd[ZFej%d\ZGd]d^ ZHd_d` ZIdadb ZJdcdd ZKG ded dZLG dfd dZMG dgd deMZNdhdi ZOdjdk ZPG dldm dmZQG dnd dZRG dod deSZTG dpd deRZUdqdr ZVG dsd deUZWG dtd deUZXd
S )wa 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 CookieJarCookiePolicyDefaultCookiePolicy
FileCookieJarLWPCookieJar LoadErrorMozillaCookieJar N)timegmFc G s( t sd S tsdd l}|jdatj | S )Nr zhttp.cookiejar)debugloggerloggingZ getLogger)argsr
r !/usr/lib64/python3.6/cookiejar.py_debug. s
r zQa filename was not supplied (nor was the CookieJar instance initialised with one)c C sJ dd l } dd l}dd l}| j }|jd | |j }|jd| dd d S )Nr zhttp.cookiejar bug!
%s )
stacklevel)iowarnings tracebackStringIO print_excgetvaluewarn)r r r fmsgr r r _warn_unhandled_exception<