py-jwt/tests/compat.py

13 lines
173 B
Python

# flake8: noqa
import sys
PY3 = sys.version_info[0] == 3
if PY3:
string_types = str,
text_type = str
else:
string_types = basestring,
text_type = unicode