summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/selector_events.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-06-22 23:03:13 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-06-22 23:03:13 (GMT)
commit425aaa11d88c3f831ebabf8ab3c51ffaa3c3f3d5 (patch)
treed8ecceac0ca00efa8e912387249f2b9513b5f6e7 /Lib/asyncio/selector_events.py
parent422a76d6adb4ab2cbfa6dc56d90be2e11c479148 (diff)
parentf328c7dc69da14766435d8608f89d81cd878bb4d (diff)
downloadcpython-425aaa11d88c3f831ebabf8ab3c51ffaa3c3f3d5.zip
cpython-425aaa11d88c3f831ebabf8ab3c51ffaa3c3f3d5.tar.gz
cpython-425aaa11d88c3f831ebabf8ab3c51ffaa3c3f3d5.tar.bz2
(Merge 3.4) asyncio, Tulip issue 171: BaseEventLoop.close() now raises an
exception if the event loop is running. You must first stop the event loop and then wait until it stopped, before closing it.
Diffstat (limited to 'Lib/asyncio/selector_events.py')
-rw-r--r--Lib/asyncio/selector_events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/selector_events.py b/Lib/asyncio/selector_events.py
index a62a8e5..df64aec 100644
--- a/Lib/asyncio/selector_events.py
+++ b/Lib/asyncio/selector_events.py
@@ -57,11 +57,11 @@ class BaseSelectorEventLoop(base_events.BaseEventLoop):
def close(self):
if self.is_closed():
return
+ super().close()
self._close_self_pipe()
if self._selector is not None:
self._selector.close()
self._selector = None
- super().close()
def _socketpair(self):
raise NotImplementedError