From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 12 Dec 2022 12:40:09 +0000 (-0800) Subject: Fix: typo (Indention) (GH-99904) X-Git-Tag: v3.10.10~120 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24ed439462bdcbca6a23d0517970d9b5d195b2d6;p=thirdparty%2FPython%2Fcpython.git 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 8711b59f7ac1803307d340e357e025043fbe2f39) Co-authored-by: jarrodcolburn Automerge-Triggered-By: GH:AlexWaygood --- diff --git a/Doc/library/profile.rst b/Doc/library/profile.rst index cf324a57e79f..6f01d1e027ec 100644 --- a/Doc/library/profile.rst +++ b/Doc/library/profile.rst @@ -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.