2to6 ?

Terry Reedy tjreedy at udel.edu
Mon Jul 2 21:24:58 CEST 2012

On 7/2/2012 11:02 AM, Thomas Heller wrote:
> Am 27.06.2012 20:06, schrieb Terry Reedy:
>> On 6/27/2012 10:36 AM, Thomas Heller wrote:
>>> Is there a tool, similar to 2to3, which converts python2 code
>>> to code using six.py, so that it runs unchanged with python2
>>> *and* python 3?
>> Others have expressed a similar wish, but I do not know that anyone has
>> actually revised 2to3 to make a 2to6, or how feasible that would be.
> Has nobody heard of, or even tried, modernize?
> http://pypi.python.org/pypi/modernize

I had not, obviously. I'm glad you found it and hope it works for you.

Terry Jan Reedy

More information about the Python-list mailing list