summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-08-03 10:18:45 (GMT)
committerGitHub <noreply@github.com>2018-08-03 10:18:45 (GMT)
commitaae872ece18dafb55250e4b622efd1c74484d747 (patch)
tree2950b4a5c25d2f8a4ec4a953e8a2b4aacfeae2b6 /Modules
parent72449547410bfcef55d0561fcec533ba9840b611 (diff)
downloadcpython-aae872ece18dafb55250e4b622efd1c74484d747.zip
cpython-aae872ece18dafb55250e4b622efd1c74484d747.tar.gz
cpython-aae872ece18dafb55250e4b622efd1c74484d747.tar.bz2
Fix docstring of Profiler class (GH-8651)
(cherry picked from commit 2ebd3813af9172fe1f9b2f6004edf6f1e1e5d9f1) Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_lsprof.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_lsprof.c b/Modules/_lsprof.c
index 0e7623d..5f2eeea 100644
--- a/Modules/_lsprof.c
+++ b/Modules/_lsprof.c
@@ -791,11 +791,11 @@ static PyMethodDef profiler_methods[] = {
};
PyDoc_STRVAR(profiler_doc, "\
-Profiler(custom_timer=None, time_unit=None, subcalls=True, builtins=True)\n\
+Profiler(timer=None, timeunit=None, subcalls=True, builtins=True)\n\
\n\
Builds a profiler object using the specified timer function.\n\
The default timer is a fast built-in one based on real time.\n\
- For custom timer functions returning integers, time_unit can\n\
+ For custom timer functions returning integers, timeunit can\n\
be a float specifying a scale (i.e. how long each integer unit\n\
is, in seconds).\n\
");