Python3 support?
Opened this issue · 3 comments
rgaiacs commented
Thanks for supply this great tool for the community.
When I try to install it I got some warnings related with the use of print
statement instead of print
function since I'm using Python3 and didn't notice any information about it in README
. There is any plan to supply a Python3 compatible version?
tarmstrong commented
Thanks! It shouldn't be too hard to support python3. I'll see if I can find some time to port it, but pull requests are welcome.
rgaiacs commented
When using 2to3
there are some changes that I don't know the best way to keep it compatible with Python2:
- replace
urllib2
withurllib.request
atnbdiff/server/command/MergeURLCommand.py
andnbdiff/server/command/DiffURLCommand.py
, - replace
__nonzero__
with__bool__
atnbdiff/server/database/__init__.py
, keys()
behavior atnbdiff/adapter/git_adapter.py
.
asmeurer commented
Just use if PY3
constructs. For nonzero, just keep both methods, with one equals the other.