There were still a lot of mixup between bytestrings and unicode strings. This changeset uses the from __future__ import unicode_literals construct which makes Python 2 interpret all strings in the code as unicode, as Python 3 does. This helps a lot reducing the differences between Python 2 and 3. It also uses six to check string types.
There were still a lot of mixup between bytestrings and unicode strings. This changeset uses the
from __future__ import unicode_literalsconstruct which makes Python 2 interpret all strings in the code as unicode, as Python 3 does. This helps a lot reducing the differences between Python 2 and 3. It also usessixto check string types.Unit tests pass with both Python 2 and Python 3.