Your IP : 216.73.216.85


Current Path : /opt/alt/python35/lib/python3.5/site-packages/jwt/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib/python3.5/site-packages/jwt/__pycache__/compat.cpython-35.pyc



b'[��@s�dZddlZddlZddlZejddkZerReZeZ	ne
ZeZ	ee	fZy
ejZ
Wnek
r�dd�Z
YnXeedd�r�dd�Znd	d�ZdS)
z�
The `compat` module provides support for backwards compatibility with older
versions of python, and compatibility wrappers around optional packages.
�N�cCsft|�t|�krdSd}x7t||�D]&\}}|t|�t|�AO}q2W|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�y�r	�;/opt/alt/python35/lib/python3.5/site-packages/jwt/compat.py�constant_time_comparesr�to_bytescCsI|}d}x$|dkr2|d?}|d7}qW|j|ddd�S)Nr���big�signedF)r)�val�	remainingZbyte_lengthr	r	r
�bytes_from_int.s
rcCsYg}x,|r4t|d�\}}|j|�q	W|j�tjdt|�|�S)N�z%sB)�divmod�append�reverse�struct�packr)r�buf�	remainderr	r	r
r8s	
)�__doc__Zhmacr�sys�version_info�PY3�str�	text_type�bytes�binary_type�unicode�string_typesZcompare_digestr�AttributeError�getattr�intrr	r	r	r
�<module>s"