Skip to content

Commit

Permalink
Fix: typo (Indention) (GH-99904)
Browse files Browse the repository at this point in the history
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 <[email protected]>
Automerge-Triggered-By: GH:AlexWaygood
  • Loading branch information
miss-islington and jarrodcolburn committed Dec 12, 2022
1 parent eece1bd commit 24ed439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/profile.rst
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ functions:
with cProfile.Profile() as pr:
# ... do something ...

pr.print_stats()
pr.print_stats()

.. versionchanged:: 3.8
Added context manager support.
Expand Down

0 comments on commit 24ed439

Please sign in to comment.