summaryrefslogtreecommitdiffstats
path: root/Modules/_tracemalloc.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-11-25 08:33:18 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-11-25 08:33:18 (GMT)
commit4fbefdb21727ea9735e9548b74c5bc9a1da9f78d (patch)
treefe72f14c78d59c976dbaa1365b5161088bee6280 /Modules/_tracemalloc.c
parent1b28be4330f47093e24bbeeb396a99654715641f (diff)
downloadcpython-4fbefdb21727ea9735e9548b74c5bc9a1da9f78d.zip
cpython-4fbefdb21727ea9735e9548b74c5bc9a1da9f78d.tar.gz
cpython-4fbefdb21727ea9735e9548b74c5bc9a1da9f78d.tar.bz2
Close #19762: Fix name of _get_traces() and _get_object_traceback() function
name in their docstring. Patch written by Vajrasky Kok.
Diffstat (limited to 'Modules/_tracemalloc.c')
-rw-r--r--Modules/_tracemalloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_tracemalloc.c b/Modules/_tracemalloc.c
index 1a782f6..4cbbd9e 100644
--- a/Modules/_tracemalloc.c
+++ b/Modules/_tracemalloc.c
@@ -1018,7 +1018,7 @@ tracemalloc_pyobject_decref_cb(_Py_hashtable_entry_t *entry, void *user_data)
}
PyDoc_STRVAR(tracemalloc_get_traces_doc,
- "get_traces() -> list\n"
+ "_get_traces() -> list\n"
"\n"
"Get traces of all memory blocks allocated by Python.\n"
"Return a list of (size: int, traceback: tuple) tuples.\n"
@@ -1083,7 +1083,7 @@ finally:
}
PyDoc_STRVAR(tracemalloc_get_object_traceback_doc,
- "get_object_traceback(obj)\n"
+ "_get_object_traceback(obj)\n"
"\n"
"Get the traceback where the Python object obj was allocated.\n"
"Return a tuple of (filename: str, lineno: int) tuples.\n"