GNOME Bugzilla – Bug 678512
Migrate to Python 3
Last modified: 2013-11-27 16:01:46 UTC
As discussed a few team meetings ago, we have a GNOME A11y Goal: Complete the Python 3 migration in time for the 3.6 release.
Created attachment 216890 [details] [review] Use relative imports (python 2.7 compatible)
Created attachment 216891 [details] [review] Use range instead of xrange (python 2.7 compatible)
Created attachment 216892 [details] [review] Misc function changes (python 2.7 compatible)
Created attachment 216893 [details] [review] Exception changes (python 2.7 compatible)
Created attachment 216894 [details] [review] Whitespace and comma cleanup (python 2.7 compatible)
Created attachment 216895 [details] [review] Use print() function instead of print statement (python 2.7 compatible)
Created attachment 216896 [details] [review] List-related changes (python 2.7 compatible)
Created attachment 216903 [details] [review] The python-3-unique changes (NOT python 2.7 compatible) Javi, with this last commit along with an ipython for python 3, Accerciser is working for my in Python 3. I'll look at the macaroon conversion after I sort out bug 678517. But in the meantime, please review all of the attached. Thanks!
Created attachment 216916 [details] [review] All the changes for Macaroon This particular patch assumes the patch from bug 678517. Aside from review and subsequent changes, I *believe* I am now done with the Python 3 migration of Accerciser. :)
Hi, It would be nice to integrate this if possible
Hi! I finally got time to apply those patches. Some slightly modifications were needed but it works very well. I squashed all commits into another one and I've just pushed it to master [1]. I also updated the 3.8 moduleset section for accerciser [2]. Althought it seems to work without problems, some testing will be appreciated. Thanks a lot for your work here Joanie, you rock (as always)! Cheers! [1]: http://git.gnome.org/browse/accerciser/commit/?id=b9bb2f48eebbf9f21ca633b6ecd6a58d6befe04a [2]: http://git.gnome.org/browse/jhbuild/commit/?id=249fb3b537555e10db468492c0b067290ba53803
(In(In reply to comment #11) > Hi! > > I finally got time to apply those patches. Some slightly modifications were > needed but it works very well. It appears that nearly all of the Macaroon changes (see comment 9) were not included in this commit. As a result, Macaroon doesn't work at all in Python 3. I have just opened bug 719433 for that.