Skip to content

Commit 24ed439

Browse files
Fix: typo (Indention) (GH-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 24ed439

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/profile.rst

+1-1
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)