Issue #20625: Fix compilation issue

This commit is contained in:
Victor Stinner 2014-02-18 22:07:56 +01:00
parent 5f47ac2aaa
commit 065efc3072
1 changed files with 2 additions and 1 deletions

View File

@ -1532,8 +1532,9 @@ compiler_visit_argannotation(struct compiler *c, identifier id,
expr_ty annotation, PyObject *names) expr_ty annotation, PyObject *names)
{ {
if (annotation) { if (annotation) {
PyObject *mangled;
VISIT(c, expr, annotation); VISIT(c, expr, annotation);
PyObject *mangled = _Py_Mangle(c->u->u_private, id); mangled = _Py_Mangle(c->u->u_private, id);
if (!mangled) if (!mangled)
return -1; return -1;
if (PyList_Append(names, mangled) < 0) { if (PyList_Append(names, mangled) < 0) {