Skip to content

Commit ca806d9

Browse files
committed
run make patchcheck to fix Azure Pipelines PR problem
1 parent cb1492f commit ca806d9

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
@@ -950,21 +950,21 @@ def callback():
950950
def create_eager_task_factory(custom_task_constructor):
951951
"""Create a function suitable for use as a task factory on an event-loop.
952952
953-
Example usage:
953+
Example usage:
954954
955-
loop.set_task_factory(
956-
asyncio.create_eager_task_factory(my_task_constructor))
955+
loop.set_task_factory(
956+
asyncio.create_eager_task_factory(my_task_constructor))
957957
958-
Now, tasks created will be started immediately (rather than being first
959-
scheduled to an event loop). The constructor argument can be any callable
960-
that returns a Task-compatible object and has a signature compatible
961-
with `Task.__init__`; it must have the `eager_start` keyword argument.
958+
Now, tasks created will be started immediately (rather than being first
959+
scheduled to an event loop). The constructor argument can be any callable
960+
that returns a Task-compatible object and has a signature compatible
961+
with `Task.__init__`; it must have the `eager_start` keyword argument.
962962
963-
Most applications will use `Task` for `custom_task_constructor` and in
963+
Most applications will use `Task` for `custom_task_constructor` and in
964964
this case there's no need to call `create_eager_task_factory()`
965965
directly. Instead the global `eager_task_factory` instance can be
966966
used. E.g. `loop.set_task_factory(asyncio.eager_task_factory)`.
967-
"""
967+
"""
968968

969969
def factory(loop, coro, *, name=None, context=None):
970970
return custom_task_constructor(

0 commit comments

Comments
 (0)