summaryrefslogtreecommitdiff
path: root/asyncio/base_events.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-02-07 23:36:32 +0100
committerVictor Stinner <victor.stinner@gmail.com>2014-02-07 23:36:32 +0100
commit35e6b8a42923cf71df2561c90f1ea4e8c28ea39d (patch)
tree64967c88facc03ccd7a91117bd0fb730aa348c3f /asyncio/base_events.py
parent4b34c93accd01412a532e7aa8e2b835b662fe3be (diff)
downloadtrollius-git-35e6b8a42923cf71df2561c90f1ea4e8c28ea39d.tar.gz
Remove resolution and _granularity from selectors and asyncio
* Remove selectors.BaseSelector.resolution attribute * Remove asyncio.BaseEventLoop._granularity attribute
Diffstat (limited to 'asyncio/base_events.py')
-rw-r--r--asyncio/base_events.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/asyncio/base_events.py b/asyncio/base_events.py
index cafd10a..db57ee8 100644
--- a/asyncio/base_events.py
+++ b/asyncio/base_events.py
@@ -96,7 +96,6 @@ class BaseEventLoop(events.AbstractEventLoop):
self._default_executor = None
self._internal_fds = 0
self._running = False
- self._granularity = time.get_clock_info('monotonic').resolution
def _make_socket_transport(self, sock, protocol, waiter=None, *,
extra=None, server=None):
@@ -638,7 +637,7 @@ class BaseEventLoop(events.AbstractEventLoop):
self._process_events(event_list)
# Handle 'later' callbacks that are ready.
- now = self.time() + self._granularity
+ now = self.time()
while self._scheduled:
handle = self._scheduled[0]
if handle._when > now: