[Python-checkins] cpython: asyncio: Remove more relics of resolution/granularity.
guido.van.rossum
python-checkins at python.org
Sun Feb 9 04:44:11 CET 2014
http://hg.python.org/cpython/rev/346e507b2cfb
changeset: 89082:346e507b2cfb
user: Guido van Rossum <guido at python.org>
date: Sat Feb 08 19:44:02 2014 -0800
summary:
asyncio: Remove more relics of resolution/granularity.
files:
Lib/asyncio/test_utils.py | 5 -----
Lib/asyncio/windows_events.py | 1 -
2 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/Lib/asyncio/test_utils.py b/Lib/asyncio/test_utils.py
--- a/Lib/asyncio/test_utils.py
+++ b/Lib/asyncio/test_utils.py
@@ -144,10 +144,6 @@
def __init__(self):
self.keys = {}
- @property
- def resolution(self):
- return 1e-3
-
def register(self, fileobj, events, data=None):
key = selectors.SelectorKey(fileobj, 0, events, data)
self.keys[fileobj] = key
@@ -196,7 +192,6 @@
next(self._gen)
self._time = 0
self._timers = []
- self._granularity = 1e-9
self._selector = TestSelector()
self.readers = {}
diff --git a/Lib/asyncio/windows_events.py b/Lib/asyncio/windows_events.py
--- a/Lib/asyncio/windows_events.py
+++ b/Lib/asyncio/windows_events.py
@@ -191,7 +191,6 @@
self._cache = {}
self._registered = weakref.WeakSet()
self._stopped_serving = weakref.WeakSet()
- self.resolution = 1e-3
def set_loop(self, loop):
self._loop = loop
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list