ok
Direktori : /opt/alt/python38/lib64/python3.8/http/__pycache__/ |
Current File : //opt/alt/python38/lib64/python3.8/http/__pycache__/cookies.cpython-38.opt-2.pyc |
U .��c�O � @ sp d dl Z d dlZdddgZdjZdjZdjZG dd� de�Zej ej d Zed Zdd� e ed ��e eee�� D �Ze�ed�ded�di� e �de �e� �jZdd� Ze �d�Ze �d�Zdd� ZdddddddgZdd d!d"d#d$d%d&d'd(d)d*d+g Zd eefd,d-�ZG d.d/� d/e�Zd0Z e d1 Z!e �d2e d3 e! d4 e j"e j#B �Z$G d5d� de�Z%G d6d� de%�Z&dS )7� N�CookieError� BaseCookie�SimpleCookie� z; � c @ s e Zd ZdS )r N)�__name__� __module__�__qualname__� r r �1/opt/alt/python38/lib64/python3.8/http/cookies.pyr � s z!#$%&'*+-.^_`|~:z ()/<=>?@[]{}c C s i | ]}|d | �qS )z\%03or )�.0�nr r r � <dictcomp>� s � r � �"�\"�\z\\z[%s]+c C s* | d kst | �r| S d| �t� d S d S )Nr )� _is_legal_key� translate�_Translator��strr r r �_quote� s r z\\[0-3][0-7][0-7]z[\\].c C sN | d kst | �dk r| S | d dks0| d dkr4| S | dd� } d}t | �}g }d| krf|k �rFn n�t�| |�}t�| |�}|s�|s�|�| |d � � �qFd }}|r�|�d�}|r�|�d�}|�r|r�||k �r|�| ||� � |�| |d � |d }qP|�| ||� � |�tt| |d |d � d��� |d }qPt|�S )N� r r ���� � � ) �len� _OctalPatt�search� _QuotePatt�append�start�chr�int� _nulljoin)r �ir �resZo_matchZq_match�j�kr r r �_unquote� s6 $ r+ ZMonZTueZWedZThuZFriZSatZSunZJanZFebZMarZAprZMayZJunZJulZAugZSepZOctZNovZDecc C sR ddl m}m } |� }||| �\ }}}} } }}} }d|| ||| || | |f S )Nr )�gmtime�timez#%s, %02d %3s %4d %02d:%02d:%02d GMT)r- r, )ZfutureZweekdaynameZ monthnamer, r- ZnowZyearZmonthZdayZhhZmmZssZwd�y�zr r r �_getdate� s �r0 c @ s� e Zd Zddddddddd d � ZddhZd d� Zedd� �Zedd� �Zedd� �Z dd� Z d1dd�Zdd� Ze jZdd� Zdd� Zd d!� Zd"d#� Zd$d%� Zd&d'� Zd2d)d*�ZeZd+d,� Zd3d-d.�Zd4d/d0�ZdS )5�Morsel�expires�Path�CommentZDomainzMax-AgeZSecureZHttpOnlyZVersionZSameSite) r2 �path�commentZdomain�max-age�secure�httponly�versionZsamesiter8 r9 c C s0 d | _ | _| _| jD ]}t�| |d� qd S )Nr )�_key�_value�_coded_value� _reserved�dict�__setitem__)�self�keyr r r �__init__ s zMorsel.__init__c C s | j S �N)r; �rA r r r rB ( s z Morsel.keyc C s | j S rD )r<