Skip to content

Commit 8711b59

Browse files
authoredDec 12, 2022
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. Automerge-Triggered-By: GH:AlexWaygood
1 parent 3221b0d commit 8711b59

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
@@ -274,7 +274,7 @@ functions:
274274
with cProfile.Profile() as pr:
275275
# ... do something ...
276276

277-
pr.print_stats()
277+
pr.print_stats()
278278

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

0 commit comments

Comments
 (0)