|
Server : Apache/2.4.41 (Ubuntu) System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.2.12 Disable Function : NONE Directory : /lib/python3/dist-packages/future/backports/http/__pycache__/ |
Upload File : |
U
J��c?+ � @ s� d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZmZm Z m
Z
mZ ddlm
Z
mZ dd d
ddd
ddgZddlZddlZddlZer�de_ddlZddlmZmZmZ ddlmZ zddlZW n ek
r� ddlZY nX ddlm Z dZ!da"dd� Z#ee�Z$dZ%dd� Z&dZ'dd� Z(dddd d!d"d#gZ)d$d%d&d'd(d)d*d+d,d-d.d/gZ*g Z+e*D ]Z,e+�-e,�.� � �qZd}d0d1�Z/d~d2d3�Z0ddddd4�Z1e�2d5ej�Z3d6d7� Z4d8d9� Z5e�2d:ej�Z6e�2d;ej7ejB �Z8e�2d<ej9ejB �Z:d=d>� Z;e�2d?ej9ejB �Z<d@dA� Z=dBdC� Z>e�2dD�Z?e�2dE�Z@e�2dF�ZAe�2dG�ZBdHdI� ZCe�2dJ�ZDdKdL� ZEdMdN� ZFdOdP� ZGe�2dQej�ZHdRdS� ZIdTdU� ZJdVdW� ZKdXdY� ZLe�2dZej�ZMd[d\� ZNd]d^� ZOd_d`� ZPdadb� ZQdcZRe�2dd�ZSdedf� ZTdgdh� ZUdidj� ZVdkdl� ZWG dmd� deX�ZYG dnd
� d
eX�ZZG dod� deZ�Z[dpdq� Z\drds� Z]G dtdu� dueX�Z^G dvd � d eX�Z_G dwd� de`�ZaG dxd� de_�Zbdydz� ZcG d{d
� d
eb�ZdG d|d� deb�ZedS )a� 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�loggingZ 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% �f�msgr r r �_warn_unhandled_exceptionH s
r, i� c C s� | d d� \}}}}}}|t kr�d| kr4dkr�n nhd| krLdkr�n nPd| krddkr�n n8d| kr|dkr�n n d| kr�dkr�n nt| �S d S d S ) N� � � � r � �; �= )�
EPOCH_YEARr )�tt�year�monthZmday�hour�min�secr r r �_timegmW s&