Kaydet (Commit) 065efc30 authored tarafından Victor Stinner's avatar Victor Stinner

Issue #20625: Fix compilation issue

üst 5f47ac2a
...@@ -1532,8 +1532,9 @@ compiler_visit_argannotation(struct compiler *c, identifier id, ...@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment