mirror of
https://github.com/python/cpython
synced 2026-09-27 05:58:16 +03: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue