Skip to content

Commit

Permalink
PyEval_EvalCode is just a wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
ahgamut committed May 14, 2022
1 parent e043046 commit a0c31d2
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions third_party/python/Python/import.c
Original file line number Diff line number Diff line change
Expand Up @@ -2578,9 +2578,16 @@ static PyObject *SFLObject_exec_module(SourcelessFileLoader *self,
if (_PyDict_GetItemId(globals, &PyId___builtins__) == NULL) {
if (_PyDict_SetItemId(globals, &PyId___builtins__,
PyEval_GetBuiltins()) != 0)
return NULL;
goto exit;
}
v = PyEval_EvalCode(code, globals, globals);
v = _PyEval_EvalCodeWithName(code, globals, globals,
(PyObject**)NULL, 0, // args, argcount
(PyObject**)NULL, 0, // kwnames, kwargs,
0, 2, // kwcount, kwstep
(PyObject**)NULL, 0, // defs, defcount
NULL, NULL, // kwdefs, closure
NULL, NULL // name, qualname
);
if(v != NULL) {
Py_DECREF(v);
Py_RETURN_NONE;
Expand Down

0 comments on commit a0c31d2

Please sign in to comment.