Commit 15c065c4 authored by scoder's avatar scoder Committed by GitHub

Merge pull request #1836 from x3k6a2/patch-2

Pass am empty dict instead of a f_globals reference to profilers.
parents a35f4153 a4454e2d
...@@ -252,7 +252,7 @@ static int __Pyx_TraceSetupAndCall(PyCodeObject** code, ...@@ -252,7 +252,7 @@ static int __Pyx_TraceSetupAndCall(PyCodeObject** code,
tstate, /*PyThreadState *tstate*/ tstate, /*PyThreadState *tstate*/
*code, /*PyCodeObject *code*/ *code, /*PyCodeObject *code*/
$moddict_cname, /*PyObject *globals*/ $moddict_cname, /*PyObject *globals*/
0 /*PyObject *locals*/ PyDict_New() /*PyObject *locals*/
); );
if (*frame == NULL) return 0; if (*frame == NULL) return 0;
if (CYTHON_TRACE && (*frame)->f_trace == NULL) { if (CYTHON_TRACE && (*frame)->f_trace == NULL) {
......
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