[New-bugs-announce] [issue6222] 2to3 except fixer failed in certain case

Haoyu Bai report at bugs.python.org
Sat Jun 6 18:11:53 CEST 2009


New submission from Haoyu Bai <divinekid at gmail.com>:

The 2to3 except fixer will be failed with this code:

try: raise TypeError
except TypeError, x:
    pass

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

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

try:
    raise TypeError
except TypeError, x:
    pass

with this, 2to3 will provide a correct diff.

----------
components: 2to3 (2.x to 3.0 conversion tool)
messages: 89005
nosy: bhy
severity: normal
status: open
title: 2to3 except fixer failed in certain case
versions: Python 2.6, Python 3.0, Python 3.1

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6222>
_______________________________________


More information about the New-bugs-announce mailing list