diff options
| author | Victor Stinner <victor.stinner@gmail.com> | 2014-12-26 20:29:45 (GMT) |
|---|---|---|
| committer | Victor Stinner <victor.stinner@gmail.com> | 2014-12-26 20:29:45 (GMT) |
| commit | 0f9f7497d0b060b55ba72235cdab192adaeb2fba (patch) | |
| tree | 616aadf949b9cc6950591e0913ca4a4c1c4903aa /Lib/asyncio/selector_events.py | |
| parent | 42cc0b711ec6f100edaa37dce8e6be5172418abb (diff) | |
| parent | 956de691f8bfc379a1f1453e9a53661c92afa15e (diff) | |
| download | cpython-0f9f7497d0b060b55ba72235cdab192adaeb2fba.zip cpython-0f9f7497d0b060b55ba72235cdab192adaeb2fba.tar.gz cpython-0f9f7497d0b060b55ba72235cdab192adaeb2fba.tar.bz2 | |
Merge 3.4 (asyncio)
Diffstat (limited to 'Lib/asyncio/selector_events.py')
| -rw-r--r-- | Lib/asyncio/selector_events.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/selector_events.py b/Lib/asyncio/selector_events.py index 7df8b86..a97709d 100644 --- a/Lib/asyncio/selector_events.py +++ b/Lib/asyncio/selector_events.py @@ -68,7 +68,7 @@ class BaseSelectorEventLoop(base_events.BaseEventLoop): address, waiter, extra) def close(self): - if self._running: + if self.is_running(): raise RuntimeError("Cannot close a running event loop") if self.is_closed(): return |
