Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: typo (Indention) #99904

Merged
merged 2 commits into from
Dec 12, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix: typo (Indention)
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.
  • Loading branch information
jarrodcolburn authored Nov 30, 2022
commit d22ca015fa0299c3bce84fca44edda55b8b52c4c
2 changes: 1 addition & 1 deletion Doc/library/profile.rst
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ functions:
with cProfile.Profile() as pr:
# ... do something ...

pr.print_stats()
pr.print_stats()
kumaraditya303 marked this conversation as resolved.
Show resolved Hide resolved

.. versionchanged:: 3.8
Added context manager support.
Expand Down