[Python-checkins] cpython (3.4): asyncio: Fix code style
yury.selivanov
python-checkins at python.org
Sun Aug 2 16:25:19 CEST 2015
https://hg.python.org/cpython/rev/da29a94367b2
changeset: 97206:da29a94367b2
branch: 3.4
parent: 97200:ace74c445a3f
user: Yury Selivanov <yselivanov at sprymix.com>
date: Sun Aug 02 10:24:34 2015 -0400
summary:
asyncio: Fix code style
files:
Lib/asyncio/tasks.py | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/Lib/asyncio/tasks.py b/Lib/asyncio/tasks.py
--- a/Lib/asyncio/tasks.py
+++ b/Lib/asyncio/tasks.py
@@ -249,9 +249,8 @@
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,
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list