Viewing File: /opt/alt/python35/lib/python3.5/site-packages/jwt/__pycache__/compat.cpython-35.opt-1.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	ú
/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ÚbufZ	remainderr	r	r
r8s	
)Ú__doc__ÚhmacrÚsysÚversion_infoZPY3ÚstrZ	text_typeÚbytesZbinary_typeÚunicodeZstring_typesZcompare_digestrÚAttributeErrorÚgetattrÚintrr	r	r	r
Ú<module>s"	


Back to Directory File Manager