%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /snap/core18/current/usr/lib/python3/dist-packages/jwt/__pycache__/
Upload File :
Create Path :
Current File : //snap/core18/current/usr/lib/python3/dist-packages/jwt/__pycache__/compat.cpython-36.pyc

3

#1�X��@s�dZddlZddlZddlZejddkZer8eZeZ	ne
ZeZ	ee	fZdd�Zy
ej
ZWnek
rvdd�ZYnXeedd�r�d	d
�Zndd
�ZdS)z�
The `compat` module provides support for backwards compatibility with older
versions of python, and compatibility wrappers around optional packages.
�N�cCsDy
|jWn,tk
r6|jddd|j}Yn
X|j�}|S)N��<)�
total_seconds�AttributeErrorZdaysZseconds)Zdeltar�r�,/usr/lib/python3/dist-packages/jwt/compat.py�timedelta_total_secondss
r	cCsLt|�t|�krdSd}x*t||�D]\}}|t|�t|�AO}q$W|dkS)z�
        Returns True if the two strings are equal, False otherwise.

        The time taken is independent of the number of characters that match.
        Fr)�len�zip�ord)Zval1Zval2�result�x�yrrr�constant_time_compare)sr�to_bytescCs6|}d}x|dkr$|d?}|d7}q
W|j|ddd�S)Nr��ZbigF)Zsigned)r)�valZ	remainingZbyte_lengthrrr�bytes_from_int;s
rcCsFg}x |r$t|d�\}}|j|�qW|j�tjdt|�f|��S)N�z%sB)�divmod�append�reverse�structZpackr
)rZbufZ	remainderrrrrEs)�__doc__Zhmacr�sys�version_infoZPY3�strZ	text_type�bytesZbinary_typeZunicodeZstring_typesr	Zcompare_digestrr�getattr�intrrrrr�<module>s$




Zerion Mini Shell 1.0