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

@ -144,12 +144,6 @@ a different clock than :func:`time.time`.
Return the current time, as a :class:`float` value, according to the
event loop's internal clock.
.. attribute:: BaseEventLoop.granularity
Granularity of the time: maximum between the resolution of the
:meth:`BaseEventLoop.time` method and the resolution of the selector (see
:attr:`selectors.BaseSelector.resolution`).
.. seealso::
The :func:`asyncio.sleep` function.