summaryrefslogtreecommitdiff
path: root/Python/Python-ast.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-01-10 18:51:35 +0000
committerGuido van Rossum <guido@python.org>2007-01-10 18:51:35 +0000
commitd713b9ecac094a8d70877e51c3a2852553c6f284 (patch)
treeb9880bd1370d220394eb4070cb9921480af1a513 /Python/Python-ast.c
parentf16bc2a26e204536d477cddceaeeb5d6d9657c9e (diff)
downloadcpython-d713b9ecac094a8d70877e51c3a2852553c6f284.tar.gz
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/Python-ast.c b/Python/Python-ast.c
index a210c7f20f..e1a5bcef8b 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;