summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/base_events.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-02-11 09:10:41 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-02-11 09:10:41 (GMT)
commit7c4bd39a1fd4b69f47ade08fe4732b2ec80f8596 (patch)
tree196bcd1f5527019c191792771a8e8e635d184d9b /Lib/asyncio/base_events.py
parent8425bf817f03949e0f77b9158a6b4d2d22157039 (diff)
downloadcpython-7c4bd39a1fd4b69f47ade08fe4732b2ec80f8596.zip
cpython-7c4bd39a1fd4b69f47ade08fe4732b2ec80f8596.tar.gz
cpython-7c4bd39a1fd4b69f47ade08fe4732b2ec80f8596.tar.bz2
Issue #20505: Oops, only print debug info if selector.select(timeout) took less
than timeout
Diffstat (limited to 'Lib/asyncio/base_events.py')
-rw-r--r--Lib/asyncio/base_events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py
index e9cb934..0200d35 100644
--- a/Lib/asyncio/base_events.py
+++ b/Lib/asyncio/base_events.py
@@ -639,7 +639,7 @@ class BaseEventLoop(events.AbstractEventLoop):
event_list = self._selector.select(timeout)
dt = time.perf_counter() - t0
dt_monotonic = time.monotonic() - t0_monotonic
- if not event_list and timeout: # and dt < timeout:
+ if not event_list and timeout and dt < timeout:
selector = self._selector.__class__.__name__
if (selector.startswith(("Poll", "Epoll", "Iocp"))
or timeout > 1e-3 or dt > 1e-3):