Skip to content

Commit d6a46ae

Browse files
committed
Merge 3.4 -> default: asyncio: Upstream issue python#167: remove dead code, by Marc Schlaich.
2 parents a7894f7 + 3d1bc60 commit d6a46ae

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Lib/asyncio/base_events.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -775,11 +775,7 @@ def _run_once(self):
775775
elif self._scheduled:
776776
# Compute the desired timeout.
777777
when = self._scheduled[0]._when
778-
deadline = max(0, when - self.time())
779-
if timeout is None:
780-
timeout = deadline
781-
else:
782-
timeout = min(timeout, deadline)
778+
timeout = max(0, when - self.time())
783779

784780
# TODO: Instrumentation only in debug mode?
785781
if logger.isEnabledFor(logging.INFO):

0 commit comments

Comments
 (0)