]> git.phdru.name Git - bookmarks_db.git/blob - compat.py
Rename `check_urls.py` to `check_urls_db.py`
[bookmarks_db.git] / compat.py
1 import sys
2
3 # Compatability definitions (inspired by six)
4 PY2 = sys.version_info[0] < 3
5 if PY2:
6     # disable flake8 checks on python 3
7     string_type = basestring  # noqa
8     unicode = unicode  # noqa
9     unichr = unichr  # noqa
10 else:
11     string_type = str
12     unicode = str
13     unichr = chr