aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/asyncio/selector_events.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-01-26 00:02:31 +0100
committerVictor Stinner <victor.stinner@gmail.com>2014-01-26 00:02:31 +0100
commit669eeaf9339a4096db0e5566b4c986300cb60f00 (patch)
tree4b286f6acb2233d518b9e6a69e434c3f0e2c3a7e /Lib/asyncio/selector_events.py
parent3c2f175ec4355a0e1f3e4d7c21ff3986e8d93dc8 (diff)
downloadcpython-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.py2
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, *,