[Python-checkins] cpython (merge 3.6 -> default): Merge 3.6 (issue #28500)
yury.selivanov
python-checkins at python.org
Fri Oct 21 17:14:27 EDT 2016
https://hg.python.org/cpython/rev/3c82fa5b7b52
changeset: 104619:3c82fa5b7b52
parent: 104617:53bee4ef1d0a
parent: 104618:3908f432d0ac
user: Yury Selivanov <yury at magic.io>
date: Fri Oct 21 17:14:17 2016 -0400
summary:
Merge 3.6 (issue #28500)
files:
Lib/asyncio/base_events.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py
--- a/Lib/asyncio/base_events.py
+++ b/Lib/asyncio/base_events.py
@@ -351,6 +351,9 @@
self._asyncgens.discard(agen)
if not self.is_closed():
self.create_task(agen.aclose())
+ # Wake up the loop if the finalizer was called from
+ # a different thread.
+ self._write_to_self()
def _asyncgen_firstiter_hook(self, agen):
if self._asyncgens_shutdown_called:
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list