8000 Fix patchcheck for `asyncio.tasks` (#108159) · python/cpython@b1e5d2c · GitHub
[go: up one dir, main page]

Skip to content

Commit b1e5d2c

Browse files
Fix patchcheck for asyncio.tasks (#108159)
1 parent 1dc0c58 commit b1e5d2c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Lib/asyncio/tasks.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -935,21 +935,21 @@ def callback():
935935
def create_eager_task_factory(custom_task_constructor):
936936
"""Create a function suitable for use as a task factory on an event-loop.
937937
938-
Example usage:
938+
Example usage:
939939
940-
loop.set_task_factory(
941-
asyncio.create_eager_task_factory(my_task_constructor))
940+
loop.set_task_factory(
941+
asyncio.create_eager_task_factory(my_task_constructor))
942942
943-
Now, tasks created will be started immediately (rather than being first
944-
scheduled to an event loop). The constructor argument can be any callable
945-
that returns a Task-compatible object and has a signature compatible
946-
with `Task.__init__`; it must have the `eager_start` keyword argument.
943+
Now, tasks created will be started immediately (rather than being first
944+
scheduled to an event loop). The constructor argument can be any callable
945+
that returns a Task-compatible object and has a signature compatible
946+
with `Task.__init__`; it must have the `eager_start` keyword argument.
947947
948-
Most applications will use `Task` for `custom_task_constructor` and in
948+
Most applications will use `Task` for `custom_task_constructor` and in
949949
this case there's no need to call `create_eager_task_factory()`
950950
directly. Instead the global `eager_task_factory` instance can be
951951
used. E.g. `loop.set_task_factory(asyncio.eager_task_factory)`.
952-
"""
952+
"""
953953

954954
def factory(loop, coro, *, name=None, context=None):
955955
return custom_task_constructor(

0 commit comments

Comments
 (0)
0