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

skip at pobox.com skip at pobox.com
Fri May 9 15:29:17 CEST 2008


    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.

Skip


More information about the Python-Dev mailing list