compat.py 173 B

123456789101112
  1. # flake8: noqa
  2. import sys
  3. PY3 = sys.version_info[0] == 3
  4. if PY3:
  5. string_types = str,
  6. text_type = str
  7. else:
  8. string_types = basestring,
  9. text_type = unicode