diff options
author | Guido van Rossum <guido@python.org> | 2007-01-10 18:51:35 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-01-10 18:51:35 (GMT) |
commit | 16be03e4a206c24b00dc1d2d3c740dffbbfc4ac9 (patch) | |
tree | 459a125a265abb16399baeea398ab116b7bf4f9b /Python/Python-ast.c | |
parent | b940e113bf90ff71b0ef57414ea2beea9d2a4bc0 (diff) | |
download | cpython-16be03e4a206c24b00dc1d2d3c740dffbbfc4ac9.zip cpython-16be03e4a206c24b00dc1d2d3c740dffbbfc4ac9.tar.gz cpython-16be03e4a206c24b00dc1d2d3c740dffbbfc4ac9.tar.bz2 |
Some more changes related to the new except syntax and semantics,
by Collin Winter.
Diffstat (limited to 'Python/Python-ast.c')
-rw-r--r-- | Python/Python-ast.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/Python-ast.c b/Python/Python-ast.c index a210c7f..e1a5bce 100644 --- a/Python/Python-ast.c +++ b/Python/Python-ast.c @@ -1836,7 +1836,7 @@ comprehension(expr_ty target, expr_ty iter, asdl_seq * ifs, PyArena *arena) } excepthandler_ty -excepthandler(expr_ty type, expr_ty name, asdl_seq * body, int lineno, int +excepthandler(expr_ty type, identifier name, asdl_seq * body, int lineno, int col_offset, PyArena *arena) { excepthandler_ty p; @@ -2928,7 +2928,7 @@ ast2obj_excepthandler(void* _o) if (PyObject_SetAttrString(result, "type", value) == -1) goto failed; Py_DECREF(value); - value = ast2obj_expr(o->name); + value = ast2obj_identifier(o->name); if (!value) goto failed; if (PyObject_SetAttrString(result, "name", value) == -1) goto failed; |