Closed wbond closed 7 years ago
Absolutely... I tried to build pybars3 with different python versions, and there are several different issues. Here is a link to my build: https://travis-ci.org/maxkoryukov/pybars3/builds/184107757
./pybars/_compiler.py:185:25: F821 undefined name 'unicode'
./pybars/_compiler.py:271:16: F821 undefined name 'unicode'
2 F821 undefined name 'unicode'
The code doesn't pass all tests, in most cases I got:
AttributeError: 'PybarsError' object has no attribute 'message'
FYI: I have a branch for this issue, I think, I could fix this on this week
Rather than e.message
you should be casting the error to str.
it is your test code ;))
anyway: e.message
=> str(e)
DONE
u'some string'
. I think, we could drop this version too;)
The whole point of this library versus pybars is to support Python 3. The Travis CI config should probably run this on at least Python 3.3 and 2.7 because of that.