This older syntax was removed in Python 3:
except MyException, exc: # Don't do that!
except MyException as exc:
find */* -name '*.py'|xargs grep 'except.*,.*:'| wc -l
... answering my own question. I found the
futurize from python-future:
futurize --write --nobackups --fix lib2to3.fixes.fix_except src/mylib/
It supports a lot of other fixes, but today I want to focus in the exception handling.
It works well and saves me a lot of time :-)