]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix: typo (Indention) (GH-99904)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 12 Dec 2022 12:40:09 +0000 (04:40 -0800)
committerGitHub <noreply@github.com>
Mon, 12 Dec 2022 12:40:09 +0000 (04:40 -0800)
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 8711b59f7ac1803307d340e357e025043fbe2f39)

Co-authored-by: jarrodcolburn <jcourtlandcolburn@gmail.com>
Automerge-Triggered-By: GH:AlexWaygood
Doc/library/profile.rst

index cf324a57e79fdff8a7571891be302b2df06a3ad8..6f01d1e027ec8cae3055c3dd342d01b99cbf375b 100644 (file)
@@ -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.