Skip to content

Commit 61b6e5c

Browse files
authored
bpo-30358: Document sort argument of profile.runctx() (GH-1566)
(cherry picked from commit 9977629)
1 parent 178756c commit 61b6e5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/profile.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,11 @@ functions:
215215

216216
and gathers profiling statistics from the execution. If no file name is
217217
present, then this function automatically creates a :class:`~pstats.Stats`
218-
instance and prints a simple profiling report. If the sort value is specified
218+
instance and prints a simple profiling report. If the sort value is specified,
219219
it is passed to this :class:`~pstats.Stats` instance to control how the
220220
results are sorted.
221221

222-
.. function:: runctx(command, globals, locals, filename=None)
222+
.. function:: runctx(command, globals, locals, filename=None, sort=-1)
223223

224224
This function is similar to :func:`run`, with added arguments to supply the
225225
globals and locals dictionaries for the *command* string. This routine

0 commit comments

Comments
 (0)