| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0969a9f commit d8cf382
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -23,8 +23,8 @@ PyAPI_FUNC(PyObject *) PyEval_CallMethod(PyObject *obj, | |||
| 23 | 23 | #ifndef Py_LIMITED_API | |
| 24 | 24 | PyAPI_FUNC(void) PyEval_SetProfile(Py_tracefunc, PyObject *); | |
| 25 | 25 | PyAPI_FUNC(void) PyEval_SetTrace(Py_tracefunc, PyObject *); | |
| 26 | - PyAPI_FUNC(void) PyEval_SetCoroutineWrapper(PyObject *wrapper); | ||
| 27 | - PyAPI_FUNC(PyObject *) PyEval_GetCoroutineWrapper(void); | ||
| 26 | + PyAPI_FUNC(void) _PyEval_SetCoroutineWrapper(PyObject *wrapper); | ||
| 27 | + PyAPI_FUNC(PyObject *) _PyEval_GetCoroutineWrapper(void); | ||
| 28 | 28 | #endif | |
| 29 | 29 | ||
| 30 | 30 | struct _frame; /* Avoid including frameobject.h */ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3936,7 +3936,7 @@ _PyEval_EvalCodeWithName(PyObject *_co, PyObject *globals, PyObject *locals, | |||
| 3936 | 3936 | return NULL; | |
| 3937 | 3937 | ||
| 3938 | 3938 | if (co->co_flags & (CO_COROUTINE | CO_ITERABLE_COROUTINE)) { | |
| 3939 | - coroutine_wrapper = PyEval_GetCoroutineWrapper(); | ||
| 3939 | + coroutine_wrapper = _PyEval_GetCoroutineWrapper(); | ||
| 3940 | 3940 | if (coroutine_wrapper != NULL) { | |
| 3941 | 3941 | PyObject *wrapped = | |
| 3942 | 3942 | PyObject_CallFunction(coroutine_wrapper, "N", gen); | |
@@ -4390,7 +4390,7 @@ PyEval_SetTrace(Py_tracefunc func, PyObject *arg) | |||
| 4390 | 4390 | } | |
| 4391 | 4391 | ||
| 4392 | 4392 | void | |
| 4393 | - PyEval_SetCoroutineWrapper(PyObject *wrapper) | ||
| 4393 | + _PyEval_SetCoroutineWrapper(PyObject *wrapper) | ||
| 4394 | 4394 | { | |
| 4395 | 4395 | PyThreadState *tstate = PyThreadState_GET(); | |
| 4396 | 4396 | ||
@@ -4401,7 +4401,7 @@ PyEval_SetCoroutineWrapper(PyObject *wrapper) | |||
| 4401 | 4401 | } | |
| 4402 | 4402 | ||
| 4403 | 4403 | PyObject * | |
| 4404 | - PyEval_GetCoroutineWrapper(void) | ||
| 4404 | + _PyEval_GetCoroutineWrapper(void) | ||
| 4405 | 4405 | { | |
| 4406 | 4406 | PyThreadState *tstate = PyThreadState_GET(); | |
| 4407 | 4407 | return tstate->coroutine_wrapper; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -655,10 +655,10 @@ sys_set_coroutine_wrapper(PyObject *self, PyObject *wrapper) | |||
| 655 | 655 | Py_TYPE(wrapper)->tp_name); | |
| 656 | 656 | return NULL; | |
| 657 | 657 | } | |
| 658 | - PyEval_SetCoroutineWrapper(wrapper); | ||
| 658 | + _PyEval_SetCoroutineWrapper(wrapper); | ||
| 659 | 659 | } | |
| 660 | 660 | else { | |
| 661 | - PyEval_SetCoroutineWrapper(NULL); | ||
| 661 | + _PyEval_SetCoroutineWrapper(NULL); | ||
| 662 | 662 | } | |
| 663 | 663 | Py_RETURN_NONE; | |
| 664 | 664 | } | |
@@ -672,7 +672,7 @@ Set a wrapper for coroutine objects." | |||
| 672 | 672 | static PyObject * | |
| 673 | 673 | sys_get_coroutine_wrapper(PyObject *self, PyObject *args) | |
| 674 | 674 | { | |
| 675 | - PyObject *wrapper = PyEval_GetCoroutineWrapper(); | ||
| 675 | + PyObject *wrapper = _PyEval_GetCoroutineWrapper(); | ||
| 676 | 676 | if (wrapper == NULL) { | |
| 677 | 677 | wrapper = Py_None; | |
| 678 | 678 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments