Browse Source

Issue #20625: Fix compilation issue

pull/9921/head
Victor Stinner 12 years ago
parent
commit
065efc3072
  1. 3
      Python/compile.c

3
Python/compile.c

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

Loading…
Cancel
Save