[Python-checkins] cpython (merge 3.5 -> default): Merge 3.5

yury.selivanov python-checkins at python.org
Sun Aug 2 22:50:01 CEST 2015


https://hg.python.org/cpython/rev/f6015c08b44a
changeset:   97215:f6015c08b44a
parent:      97211:4ed9cc2203b3
parent:      97214:14daad66c702
user:        Yury Selivanov <yselivanov at sprymix.com>
date:        Sun Aug 02 16:49:56 2015 -0400
summary:
  Merge 3.5

files:
  Lib/asyncio/tasks.py |  5 +++--
  1 files changed, 3 insertions(+), 2 deletions(-)


diff --git a/Lib/asyncio/tasks.py b/Lib/asyncio/tasks.py
--- a/Lib/asyncio/tasks.py
+++ b/Lib/asyncio/tasks.py
@@ -249,8 +249,9 @@
                     result._blocking = False
                     result.add_done_callback(self._wakeup)
                     self._fut_waiter = result
-                    if self._must_cancel and self._fut_waiter.cancel():
-                        self._must_cancel = False
+                    if self._must_cancel:
+                        if 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