diff options
author | Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> | 2023-06-13 06:06:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-13 06:06:40 (GMT) |
commit | 840d02f3f0cd341207db6d918ce7f0987be9952e (patch) | |
tree | bd456e3ea504d4a1e3ad0e270147d96d5f045b65 /Lib/asyncio/base_events.py | |
parent | 829ac13b69a2b53153e1b40670e6ef82f05130c1 (diff) | |
download | cpython-840d02f3f0cd341207db6d918ce7f0987be9952e.zip cpython-840d02f3f0cd341207db6d918ce7f0987be9952e.tar.gz cpython-840d02f3f0cd341207db6d918ce7f0987be9952e.tar.bz2 |
GH-105684: Require `asyncio.Task` implementations to support `set_name` method (#105685)
Diffstat (limited to 'Lib/asyncio/base_events.py')
-rw-r--r-- | Lib/asyncio/base_events.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py index 32d7e1c..f650e6b 100644 --- a/Lib/asyncio/base_events.py +++ b/Lib/asyncio/base_events.py @@ -443,7 +443,7 @@ class BaseEventLoop(events.AbstractEventLoop): else: task = self._task_factory(self, coro, context=context) - tasks._set_task_name(task, name) + task.set_name(name) return task |