On Saturday 14 March 2015 14:53:17 Ian Wilder wrote: > have you guys thought about using Python 2to3? > > https://docs.python.org/2/library/2to3.html > > even if you don't use the result, it may give a good direction for > problems that arise.
Bah.. too 2010... ;-) http://marc.info/?l=lyx-devel&m=136836775010034&w=2 A better option, and one that I have been using is to use python-modernize that uses 2to3 to highlight the places where the code should be changed while at the same time remaining compatible between python 2 and python 3. The ideas are sketched here http://lucumr.pocoo.org/2013/5/21/porting-to-python-3-redux/ and python-modernize can be found here https://github.com/mitsuhiko/python-modernize Some other points regarding the conversion can be found here http://www.lyx.org/trac/ticket/9006 -- José Abílio