diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-01-26 00:02:31 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-01-26 00:02:31 +0100 |
commit | 669eeaf9339a4096db0e5566b4c986300cb60f00 (patch) | |
tree | 4b286f6acb2233d518b9e6a69e434c3f0e2c3a7e /Lib/asyncio/selector_events.py | |
parent | 3c2f175ec4355a0e1f3e4d7c21ff3986e8d93dc8 (diff) | |
download | cpython-669eeaf9339a4096db0e5566b4c986300cb60f00.tar.gz cpython-669eeaf9339a4096db0e5566b4c986300cb60f00.zip |
Merge latest Tulip into asyncio
- Make the new granularity attribute private
- Simplify BaseEventLoop._run_once(): avoid math.ceil(), use simple arithmetic
instead
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 900eec01333..94408f82b49 100644 --- a/Lib/asyncio/selector_events.py +++ b/Lib/asyncio/selector_events.py @@ -36,7 +36,7 @@ class BaseSelectorEventLoop(base_events.BaseEventLoop): selector = selectors.DefaultSelector() logger.debug('Using selector: %s', selector.__class__.__name__) self._selector = selector - self.granularity = max(selector.resolution, self.granularity) + self._granularity = max(selector.resolution, self._granularity) self._make_self_pipe() def _make_socket_transport(self, sock, protocol, waiter=None, *, |