Skip to content

Commit 5fae4e1

Browse files
jarrodcolburnmiss-islington
authored andcommitted
Fix: typo (Indention) (pythonGH-99904)
Example needed to be indented. Was trying to call a context manger `pr` (from ` with cProfile.Profile() as pr:`) wot perform ` pr.print_stats()` once it had already exited. (cherry picked from commit 8711b59) Co-authored-by: jarrodcolburn <jcourtlandcolburn@gmail.com> Automerge-Triggered-By: GH:AlexWaygood
1 parent eece1bd commit 5fae4e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/profile.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ functions:
273273
with cProfile.Profile() as pr:
274274
# ... do something ...
275275

276-
pr.print_stats()
276+
pr.print_stats()
277277

278278
.. versionchanged:: 3.8
279279
Added context manager support.

0 commit comments

Comments
 (0)