Merge latest Tulip into asyncio

- Make the new granularity attribute private
- Simplify BaseEventLoop._run_once(): avoid math.ceil(), use simple arithmetic
  instead
This commit is contained in:
Victor Stinner 2014-01-26 00:02:31 +01:00
parent 3c2f175ec4
commit 669eeaf933
4 changed files with 5 additions and 16 deletions

View file

@ -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, *,