mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
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...
This commit is contained in:
parent
341b528980
commit
3c7187d801
3 changed files with 15 additions and 10 deletions
9
test/basetest/compat.py
Normal file
9
test/basetest/compat.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
try:
|
||||
STRING_TYPE = basestring
|
||||
except NameError:
|
||||
# Python 3
|
||||
STRING_TYPE = str
|
||||
|
||||
# vim: ai sts=4 et sw=4
|
Loading…
Add table
Add a link
Reference in a new issue