Skip to content
Snippets Groups Projects
Unverified Commit c96da83a authored by larryhastings's avatar larryhastings Committed by GitHub
Browse files

Fix the closure argument to PyEval_EvalCodeEx. (GH-92175)

parent dd57fe1d
Branches
Tags
No related merge requests found
Fix the ``closure`` argument to :c:func:`PyEval_EvalCodeEx`.
......@@ -29,7 +29,8 @@ _PyFunction_FromConstructor(PyFrameConstructor *constr)
op->func_code = constr->fc_code;
op->func_defaults = NULL;
op->func_kwdefaults = NULL;
op->func_closure = NULL;
Py_XINCREF(constr->fc_closure);
op->func_closure = constr->fc_closure;
Py_INCREF(Py_None);
op->func_doc = Py_None;
op->func_dict = NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment