malthe/chameleon — Issue #75: Chameleon doesn't work on Python 3.3 because ast.TryExcept is gone
Author: cataliniacob
Created: 2011-12-07 20:35:01+00:00
State: open

Chameleon fails when used with the pre alpha Python 3.3. The traceback ends with

```
File "/home/catalin/test_chameleon/src/chameleon/src/chameleon/compiler.py", line 136, in try_except_wrap
return ast.TryExcept(
AttributeError: 'module' object has no attribute 'TryExcept'
```

This is because in the default branch (future Python 3.3) ast.TryExcept and ast.TryFinally were replaced by ast.Try. See commit at http://hg.python.org/cpython/rev/e0e663132363, issue at http://bugs.python.org/issue12199.