diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-08-03 02:43:18 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-03 02:43:18 -0700 |
| commit | 396afbf7711aff2c3d5a34da1724980c5db82724 (patch) | |
| tree | 9b248580acbb5cd55b45f9cab668a7dfdb68d0ba | |
| parent | 24a54da9452efb21d30dc56c6b9d0977d08ae452 (diff) | |
| download | cpython-git-396afbf7711aff2c3d5a34da1724980c5db82724.tar.gz | |
Fix docstring of Profiler class (GH-8651)
(cherry picked from commit 2ebd3813af9172fe1f9b2f6004edf6f1e1e5d9f1)
Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
| -rwxr-xr-x | Lib/cProfile.py | 4 | ||||
| -rw-r--r-- | Modules/_lsprof.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Lib/cProfile.py b/Lib/cProfile.py index b2efd047d3..d3770946db 100755 --- a/Lib/cProfile.py +++ b/Lib/cProfile.py @@ -64,11 +64,11 @@ def help(): # ____________________________________________________________ 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). """ diff --git a/Modules/_lsprof.c b/Modules/_lsprof.c index 6090c7dd23..945354fcfa 100644 --- a/Modules/_lsprof.c +++ b/Modules/_lsprof.c @@ -807,11 +807,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\ "); |
