Closed stasiek closed 8 years ago
Python 3 compatibility is a great idea. I submitted separate issue #2 about it with some additional tasks related to it. Do you @stasiek have time to take care of also them? Do you have any other enhancements in mind or should we create 1.3 release once Python 3 support is done?
Regarding to this PR, it's great to see that needed changes are minimal. I'd add from __future__ import print_function
to affected files, though. Using print('foo')
in Python 2 without it works in simple cases, but I don't think that's a good approach except for one-liners and very simple scripts.
@pekkaklarck got no time to think about what else to change. For now I just need it for SSHLibrary Python 3 compatibility. Changes required in #2 included, I've also updated the copyright note.
Forgot about importing future.print_function. I'll add it later today.
Cool, let's just create 1.3 with Python 3 compatibility then. Can you add print_function
import and mention version that added Python 3 support in README (see my line note)? I can then create the release.
Should be ready to merge now.
Two issue related to future imports:
run.py
.Do you @stasiek have time to fix these today or should I do it myself? If you can fix them ASAP, I ought to still have time for creating a release. I have some other task that I need to do first, though.
Tests return same results for Python 2 and 3.