Hi I was wondering if you have plans to move over to Python3 for this project?
In Ubuntu 18.04 default python is now 3, so I thought I'll try converting this to 3 as well. It seems to work fine.
This is mostly automatic conversion using 2to3 with some extra edits on top of that. The only weird problem was with inheritance from namedtuple, basically A->namedtuple works fine, but
B->A->namedtuple is somehow broken. Rather than figuring it out, I just made AptRequest derive from object and set output member manually.
Just thought I'll share this via pull request, feel free to reject this if you need to stay in python2 for a while.
Hi I was wondering if you have plans to move over to Python3 for this project?
In Ubuntu 18.04 default python is now 3, so I thought I'll try converting this to 3 as well. It seems to work fine.
This is mostly automatic conversion using
2to3
with some extra edits on top of that. The only weird problem was with inheritance fromnamedtuple
, basicallyA->namedtuple
works fine, butB->A->namedtuple
is somehow broken. Rather than figuring it out, I just madeAptRequest
derive fromobject
and setoutput
member manually.Just thought I'll share this via pull request, feel free to reject this if you need to stay in python2 for a while.