diff options
| author | Victor Stinner <victor.stinner@gmail.com> | 2016-03-22 23:54:42 +0100 |
|---|---|---|
| committer | Victor Stinner <victor.stinner@gmail.com> | 2016-03-22 23:54:42 +0100 |
| commit | f9a71153e9122a3d2bb86fc479bdda2f2adc859e (patch) | |
| tree | 5ac6eada02b6c077b240eb90300f6fbd21915d24 /Modules/_testcapimodule.c | |
| parent | 92c21d7a7c3a925358e606ffa7ab25cc7e73f0b3 (diff) | |
| download | cpython-git-f9a71153e9122a3d2bb86fc479bdda2f2adc859e.tar.gz | |
Issue #26588: remove debug traces from _tracemalloc.
Diffstat (limited to 'Modules/_testcapimodule.c')
| -rw-r--r-- | Modules/_testcapimodule.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index f952aec36f..8c794859eb 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -3747,19 +3747,6 @@ tracemalloc_get_traceback(PyObject *self, PyObject *args) return _PyTraceMalloc_GetTraceback(domain, (Py_uintptr_t)ptr); } -PyObject* -tracemalloc_set_debug(PyObject *self, PyObject *args) -{ - int debug; - extern int tracemalloc_debug; - - if (!PyArg_ParseTuple(args, "i", &debug)) - return NULL; - - tracemalloc_debug = debug; - Py_RETURN_NONE; -} - static PyMethodDef TestMethods[] = { {"raise_exception", raise_exception, METH_VARARGS}, @@ -3949,7 +3936,6 @@ static PyMethodDef TestMethods[] = { {"tracemalloc_track", tracemalloc_track, METH_VARARGS}, {"tracemalloc_untrack", tracemalloc_untrack, METH_VARARGS}, {"tracemalloc_get_traceback", tracemalloc_get_traceback, METH_VARARGS}, - {"tracemalloc_set_debug", tracemalloc_set_debug, METH_VARARGS}, {NULL, NULL} /* sentinel */ }; |
