Fix docstring of Profiler class (GH-8651)
authorINADA Naoki <methane@users.noreply.github.com>
Fri, 3 Aug 2018 09:09:57 +0000 (18:09 +0900)
committerGitHub <noreply@github.com>
Fri, 3 Aug 2018 09:09:57 +0000 (18:09 +0900)
Lib/cProfile.py
Modules/_lsprof.c

index c8045043cbcfe4f06b55f4b358bc02951e43014b..3c9be3cbd224417fefc17d0dd745c0ec110c132f 100755 (executable)
@@ -25,11 +25,11 @@ runctx.__doc__ = _pyprofile.runctx.__doc__
 # ____________________________________________________________
 
 class Profile(_lsprof.Profiler):
-    """Profile(custom_timer=None, time_unit=None, subcalls=True, builtins=True)
+    """Profile(timer=None, timeunit=None, subcalls=True, builtins=True)
 
     Builds a profiler object using the specified timer function.
     The default timer is a fast built-in one based on real time.
-    For custom timer functions returning integers, time_unit can
+    For custom timer functions returning integers, timeunit can
     be a float specifying a scale (i.e. how long each integer unit
     is, in seconds).
     """
index 602747098bb66bc0778c5cac097e1cfc3dd81081..233f62fe2f14e912585e2a4dac52f1e7dc86d51d 100644 (file)
@@ -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\
 ");