[Python-Dev] Tool for converting %-formatting to .format()ing ?

M.-A. Lemburg mal at egenix.com
Fri May 9 16:02:39 CEST 2008


On 2008-05-09 15:29, skip at pobox.com wrote:
>     mal> Is there a tool available that can convert 2.x code automagically
>     mal> to the .format() method syntax ?
> 
>     mal> Just did a quick grep of our code base and it has some 2000 lines
>     mal> of code that would need to be changed.
> 
> I suggested a 2to3 fixer for this but was shot down.

Well, ideally such a tool should address 2to2 :-)

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, May 09 2008)
 >>> Python/Zope Consulting and Support ...        http://www.egenix.com/
 >>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
 >>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________

:::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! ::::


    eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
     D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
            Registered at Amtsgericht Duesseldorf: HRB 46611


More information about the Python-Dev mailing list