summaryrefslogtreecommitdiff
path: root/Modules/_lsprof.c
diff options
context:
space:
mode:
authorINADA Naoki <methane@users.noreply.github.com>2018-08-03 18:09:57 +0900
committerGitHub <noreply@github.com>2018-08-03 18:09:57 +0900
commit2ebd3813af9172fe1f9b2f6004edf6f1e1e5d9f1 (patch)
tree0ba15272ee9a85369c7f2a440ab24160199e02fe /Modules/_lsprof.c
parentb6efc2cf9701adfb901eec2fe6a418893739877a (diff)
downloadcpython-git-2ebd3813af9172fe1f9b2f6004edf6f1e1e5d9f1.tar.gz
Fix docstring of Profiler class (GH-8651)
Diffstat (limited to 'Modules/_lsprof.c')
-rw-r--r--Modules/_lsprof.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_lsprof.c b/Modules/_lsprof.c
index 602747098b..233f62fe2f 100644
--- a/Modules/_lsprof.c
+++ b/Modules/_lsprof.c
@@ -788,11 +788,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\
");