mirror of https://github.com/python/cpython
asyncio: Remove more relics of resolution/granularity.
This commit is contained in:
parent
72318b97f6
commit
09f08fe248
|
@ -144,10 +144,6 @@ class TestSelector(selectors.BaseSelector):
|
|||
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 @@ class TestLoop(base_events.BaseEventLoop):
|
|||
next(self._gen)
|
||||
self._time = 0
|
||||
self._timers = []
|
||||
self._granularity = 1e-9
|
||||
self._selector = TestSelector()
|
||||
|
||||
self.readers = {}
|
||||
|
|
|
@ -191,7 +191,6 @@ class IocpProactor:
|
|||
self._cache = {}
|
||||
self._registered = weakref.WeakSet()
|
||||
self._stopped_serving = weakref.WeakSet()
|
||||
self.resolution = 1e-3
|
||||
|
||||
def set_loop(self, loop):
|
||||
self._loop = loop
|
||||
|
|
Loading…
Reference in New Issue