mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
asyncio: Fix code style
This commit is contained in:
parent
0dcd80a6c0
commit
6b3f29ca8f
1 changed files with 2 additions and 3 deletions
|
@ -249,9 +249,8 @@ class Task(futures.Future):
|
|||
result._blocking = False
|
||||
result.add_done_callback(self._wakeup)
|
||||
self._fut_waiter = result
|
||||
if self._must_cancel:
|
||||
if self._fut_waiter.cancel():
|
||||
self._must_cancel = False
|
||||
if self._must_cancel and self._fut_waiter.cancel():
|
||||
self._must_cancel = False
|
||||
else:
|
||||
self._loop.call_soon(
|
||||
self._step, None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue