mirror of
https://github.com/python/cpython
synced 2024-10-14 11:58:12 +00:00
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
This commit is contained in:
parent
3221b0de67
commit
8711b59f7a
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue