diff options
author | jarrodcolburn <jcourtlandcolburn@gmail.com> | 2022-12-12 12:25:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-12 12:25:22 (GMT) |
commit | 8711b59f7ac1803307d340e357e025043fbe2f39 (patch) | |
tree | 2939e23eee9198198d6916557164ef81f57907cc /Doc/library | |
parent | 3221b0de6792145cb4d0d461065a956db82acc93 (diff) | |
download | cpython-8711b59f7ac1803307d340e357e025043fbe2f39.zip cpython-8711b59f7ac1803307d340e357e025043fbe2f39.tar.gz cpython-8711b59f7ac1803307d340e357e025043fbe2f39.tar.bz2 |
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
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/profile.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/profile.rst b/Doc/library/profile.rst index 2d95096..c2189e0 100644 --- a/Doc/library/profile.rst +++ b/Doc/library/profile.rst @@ -274,7 +274,7 @@ functions: with cProfile.Profile() as pr: # ... do something ... - pr.print_stats() + pr.print_stats() .. versionchanged:: 3.8 Added context manager support. |