Kaydet (Commit) 6acc5e13 authored tarafından Victor Stinner's avatar Victor Stinner

Issue #20625: Fix compilation issue

üst dc87052c
......@@ -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) {
......
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