summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-02-11 16:53:47 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-02-11 16:53:47 (GMT)
commit2371e2551770572a219cf7a8f75fff09c9035157 (patch)
tree2e0c69469a7c5b850828dcbf29bccb4908e0b182 /Lib/asyncio
parente18e787e70fecb39789140489a33bbc3eaba36da (diff)
downloadcpython-2371e2551770572a219cf7a8f75fff09c9035157.zip
cpython-2371e2551770572a219cf7a8f75fff09c9035157.tar.gz
cpython-2371e2551770572a219cf7a8f75fff09c9035157.tar.bz2
Issue #20505: Remove debug code
Diffstat (limited to 'Lib/asyncio')
-rw-r--r--Lib/asyncio/base_events.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py
index 5765f47..7d12042 100644
--- a/Lib/asyncio/base_events.py
+++ b/Lib/asyncio/base_events.py
@@ -646,27 +646,7 @@ class BaseEventLoop(events.AbstractEventLoop):
else:
logger.log(level, 'poll took %.3f seconds', t1-t0)
else:
- t0_monotonic = time.monotonic()
- t0 = time.perf_counter()
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 or dt_monotonic < timeout)):
- selector = self._selector.__class__.__name__
- if (selector.startswith(("Poll", "Epoll", "Iocp"))
- or timeout > 1e-3 or dt > 1e-3):
- unit, factor = "ms", 1e3
- else:
- unit, factor = "us", 1e6
- print("asyncio: %s.select(%.4f %s) took %.3f %s"
- " (monotonic=%.3f %s, clock res=%.3f %s)"
- % (self._selector.__class__.__name__,
- timeout * factor, unit,
- dt * factor, unit,
- dt_monotonic * factor, unit,
- self._clock_resolution * factor, unit),
- file=sys.__stderr__, flush=True)
self._process_events(event_list)
# Handle 'later' callbacks that are ready.