Pewarta Proxy

📋 Server Request & Proxy Logs

Loading active proxy settings...
Developed by Khairul Adha (adhexa.id)
Mengambil log server...

⚙️ Pengaturan Proxy Target

Skip to content
Merged
Show file tree
Hide file tree
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
bpo-46995: Deprecate missing asyncio.Task.set_name() for third-party …
…task implementations
  • Loading branch information
asvetlov committed Mar 12, 2022
commit 0032450f787b70138444efdd88adfa2bb9b6222c
5 changes: 4 additions & 1 deletion Lib/asyncio/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ def _set_task_name(task, name):
try:
set_name = task.set_name
except AttributeError:
pass
warnings.warn("Task.set_name() was added by Python 3.8, "
Comment thread
asvetlov marked this conversation as resolved.
Resolved
"the method support will be mandatory for third-party "
"task implementations since 3.13.",
DeprecationWarning, stacklevel=2)
Comment thread
asvetlov marked this conversation as resolved.
Resolved
else:
set_name(name)

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Deprecate missing :meth:`asyncio.Task.set_name` for third-party task
implementations, schedule the making it mandatory in Python 3.13.
Comment thread
asvetlov marked this conversation as resolved.
Resolved