mirror of
https://github.com/python/cpython.git
synced 2025-08-27 12:16:04 +00:00
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:
parent
3c2f175ec4
commit
669eeaf933
4 changed files with 5 additions and 16 deletions
|
@ -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, *,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue