File: //usr/lib/python3/dist-packages/future/backports/http/__pycache__/cookiejar.cpython-310.pyc
o
P��c?+ � @ sl d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZmZm Z m
Z
mZ ddlm
Z
mZ g d�Zdd lZdd lZdd lZerEde_dd lZdd
lmZmZmZ ddlmZ zdd lZW n
eyl dd lZY nw ddlm Z d
Z!d a"dd� Z#ee�Z$dZ%dd� Z&dZ'dd� Z(g d�Z)g d�Z*g Z+e*D ] Z,e+�-e,�.� � q�dmdd�Z/dmdd�Z0d d d d d�Z1e�2dej�Z3dd� Z4d d!� Z5e�2d"ej�Z6e�2d#ej7ejB �Z8e�2d$ej9ejB �Z:d%d&� Z;e�2d'ej9ejB �Z<d(d)� Z=d*d+� Z>e�2d,�Z?e�2d-�Z@e�2d.�ZAe�2d/�ZBd0d1� ZCe�2d2�ZDd3d4� ZEd5d6� ZFd7d8� ZGe�2d9ej�ZHd:d;� ZId<d=� ZJd>d?� ZKd@dA� ZLe�2dBej�ZMdCdD� ZNdEdF� ZOdGdH� ZPdIdJ� ZQdKZRe�2dL�ZSdMdN� ZTdOdP� ZUdQdR� ZVdSdT� ZWG dUdV� dVeX�ZYG dWdX� dXeX�ZZG dYdZ� dZeZ�Z[d[d\� Z\d]d^� Z]G d_d`� d`eX�Z^G dadb� dbeX�Z_G dcdd� dde`�ZaG dedf� dfe_�Zbdgdh� ZcG didj� djeb�ZdG dkdl� dleb�Zed S )na� HTTP cookie handling for web clients.
This is a backport of the Py3.3 ``http.cookiejar`` module for
python-future.
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
� )�unicode_literals)�print_function)�division)�absolute_import)�filter�int�map�open�str)�
as_native_str�PY2)�Cookie� CookieJar�CookiePolicy�DefaultCookiePolicy�
FileCookieJar�LWPCookieJar� LoadError�MozillaCookieJarN)�urlparse�urlsplit�quote)� HTTP_PORT)�timegmFc G s( t sd S tsdd l}|�d�atj | � S )Nr zhttp.cookiejar)�debug�logger�logging� getLogger)�argsr � r �A/usr/lib/python3/dist-packages/future/backports/http/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}| �� }|�d |� |�� }|jd| dd� d S )Nr zhttp.cookiejar bug!
%s� )�
stacklevel)�io�warnings� traceback�StringIO� print_exc�getvalue�warn)r$ r% r&