taskwarrior/test/basetest/compat.py
Renato Alves 3c7187d801 Tests: Create compat.py for Python 3 compatibility
Individual tests are not yet fully compatible with Python 3.
Some still have issues with I/O encoding/decoding. The painful part...
2015-07-24 15:29:41 +01:00

9 lines
139 B
Python

# -*- coding: utf-8 -*-
try:
STRING_TYPE = basestring
except NameError:
# Python 3
STRING_TYPE = str
# vim: ai sts=4 et sw=4