]> git.phdru.name Git - m_librarian.git/blob - m_librarian/compat.py
Tests: Require tox < 3.1 to avoid basepython conflicts
[m_librarian.git] / m_librarian / compat.py
1 import sys
2
3 # Compatability definitions
4 PY2 = sys.version_info[0] < 3
5 if PY2:
6     # disable flake8 checks on python 3
7     string_type = basestring  # noqa
8     unicode_type = unicode  # noqa
9 else:
10     string_type = str
11     unicode_type = str