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

bpo-46995: Deprecate missing asyncio.Task.set_name() for third-party task implementations #31838

Merged
merged 6 commits into from
Mar 13, 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
Prev Previous commit
Next Next commit
Update Lib/asyncio/tasks.py
asvetlov authored Mar 12, 2022

Verified

This commit was signed with the committer’s verified signature. The key has expired.
phi-gamma Philipp Gesang
commit 067c8e53b674ed905d9796d2eaa260bf18937b01
2 changes: 1 addition & 1 deletion Lib/asyncio/tasks.py
Original file line number Diff line number Diff line change
@@ -70,7 +70,7 @@ def _set_task_name(task, name):
warnings.warn("Task.set_name() was added in Python 3.8, "
"the method support will be mandatory for third-party "
"task implementations since 3.13.",
DeprecationWarning, stacklevel=2)
DeprecationWarning, stacklevel=3)
else:
set_name(name)