Title: 2to3 except fixer failed in certain case
Type: Stage:
Components: 2to3 (2.x to 3.x conversion tool) Versions: Python 3.0, Python 3.1, Python 2.6
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, bhy
Priority: normal Keywords:

Created on 2009-06-06 16:11 by bhy, last changed 2009-06-06 16:24 by benjamin.peterson. This issue is now closed.

Messages (2)
msg89005 - (view) Author: Haoyu Bai (bhy) Date: 2009-06-06 16:11
The 2to3 except fixer will be failed with this code:

try: raise TypeError
except TypeError, x:

with this code, 2to3 will produce an empty diff, i.e. it fixes nothing.

But when change it to the following, 2to3 works again:

    raise TypeError
except TypeError, x:

with this, 2to3 will provide a correct diff.
msg89006 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2009-06-06 16:24
Fixed in r73255.
Date User Action Args
2009-06-06 16:24:02benjamin.petersonsetstatus: open -> closed

nosy: + benjamin.peterson
messages: + msg89006

resolution: fixed
2009-06-06 16:11:52bhycreate