Open MartinThoma opened 4 years ago
Upvote for this issue. I also think using some sort of semi-automatic way to convert the code base will be better. For example, use 2 to 3.
I also think using some sort of semi-automatic way to convert the code base will be better
Better than what? I used 2to3 for the two PRs :laughing: - I just do it step-by-step so that it is easier to check. 2to3 has some flaws.
@MartinThoma Oops, I didn’t know that you use 2 to 3 already. What kinds of flaws do you mean?
There is only one I've stumbled over: If you already use print as a function in Python 2, e.g. print(1)
, then 2to3 will convert it to print((1))
. Of course, this is not wrong. But it is not nice either. Also, from urllib2 import urlopen
is always replaced by 3 different imports. Most of the time, the other 2 imports are not necessary.
So I like applying 2to3 step by step. print was done, imports were done. I plan the following next steps:
I guess while improving the testing capabilities I will also make sure that it works for Python 3. Lets see :-)
This project seems to be Python 2 only. Python 2 got deprecated with the end of 2019. Do you plan to move to Python 3? Do you need support with that?