Skip to content

Commit e065739

Browse files
committed
formatting
1 parent e22655b commit e065739

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Lib/asyncio/events.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ def _get_running_loop():
775775
except NameError:
776776
# C implementation not available
777777
pass
778-
778+
779779
# NOTE: this function is implemented in C (see _asynciomodule.c)
780780
running_loop, pid = _running_loop.loop_pid
781781
if running_loop is not None and pid == os.getpid():
@@ -790,8 +790,8 @@ def _set_running_loop(loop):
790790
"""
791791
# NOTE: this function is implemented in C (see _asynciomodule.c)
792792
_running_loop.loop_pid = (loop, os.getpid())
793-
794-
# Keep C implementation in sync if available
793+
794+
# Keep C implementation in sync if available
795795
try:
796796
if _c__set_running_loop is not _py__set_running_loop:
797797
_c__set_running_loop(loop)

Lib/asyncio/tasks.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ def current_task(loop=None):
3838
"""Return a currently executed task."""
3939
if loop is None:
4040
loop = events.get_running_loop()
41-
41+
4242
# If we have a C implementation, prefer it
4343
if current_task is not _py_current_task:
4444
return _c_current_task(loop)
45-
45+
4646
# Fall back to Python state
4747
return _current_tasks.get(loop)
4848

@@ -1093,7 +1093,7 @@ def _enter_task(loop, task):
10931093
f"task {current_task!r} is being executed.")
10941094
_current_tasks[loop] = task
10951095
if _c_swap_current_task is not _py_swap_current_task:
1096-
# keep the C task state in sync
1096+
# Keep the C task state in sync
10971097
_c_swap_current_task(loop, task)
10981098

10991099

@@ -1104,7 +1104,7 @@ def _leave_task(loop, task):
11041104
f"the current task {current_task!r}.")
11051105
del _current_tasks[loop]
11061106
if _c_swap_current_task is not _py_swap_current_task:
1107-
# keep the C task state in sync
1107+
# Keep the C task state in sync
11081108
_c_swap_current_task(loop, None)
11091109

11101110

@@ -1115,7 +1115,7 @@ def _swap_current_task(loop, task):
11151115
else:
11161116
_current_tasks[loop] = task
11171117
if _c_swap_current_task is not _py_swap_current_task:
1118-
# keep the C task state in sync
1118+
# Keep the C task state in sync
11191119
_c_swap_current_task(loop, task)
11201120
return prev_task
11211121

0 commit comments

Comments
 (0)