[Python-Dev] Partial 2to3?

Benjamin Peterson benjamin at python.org
Sat Mar 28 02:09:44 CET 2009


2009/3/27 Collin Winter <collinw at gmail.com>:
> 2009/3/27  <skip at pobox.com>:
>> Following up on yesterday's conversation about 2to3 and 3to2, I wonder if
>> it's easily possible to run 2to3 with a specific small subset of its fixers?
>> For example, people not wanting to make the 2->3 leap yet might still be
>> interersted in the exception handling changes ("except Foo as exc")?
>
> Sure, that's easily possible: run 2to3 -f
> some_fixer,other_fixer,this_fixer,that_fixer. You can get a full list
> of fixers using the --list-fixes option.

In addition you can use the -x option to not run a set of fixers.



-- 
Regards,
Benjamin


More information about the Python-Dev mailing list