Closed roskakori closed 9 years ago
Note: I modified this ticket to cover all issues concerning the back port to Python 2 as this will be an ongoing topic for the weeks to come.
Current status: all modules have from __future__
imports, 128 test pass and 28 fail when running tox -e py27
.
Most of the failed test should be fixable by using six.text_type
or considering the u'...'
prefix for unicode strings when comparing expected error messages.
All test pass with Python 2.6 and Python 2.7.
Goal: even after migration to Python 3 (#56), the code still works with Python 2.6+.
Notes on how to achieve this:
six
package for portable code, see https://pypi.python.org/pypi/six and http://pythonhosted.org/six/.# TODO #61: ...
.__str__()
with@python_2_unicode_compatible
(currently found in_compat
)Instead of
six
and_compat
we could also usefuture
available from https://pypi.python.org/pypi/future.