]> granicus.if.org Git - python/commitdiff
asyncio: Upstream issue #167: remove dead code, by Marc Schlaich.
authorGuido van Rossum <guido@python.org>
Sat, 10 May 2014 22:47:15 +0000 (15:47 -0700)
committerGuido van Rossum <guido@python.org>
Sat, 10 May 2014 22:47:15 +0000 (15:47 -0700)
Lib/asyncio/base_events.py

index d2bdc07d36c23b1d963f088a8e8d44ec75481055..3d4a87afdb2b074d8c2331f6602b83a016aab6f5 100644 (file)
@@ -775,11 +775,7 @@ class BaseEventLoop(events.AbstractEventLoop):
         elif self._scheduled:
             # Compute the desired timeout.
             when = self._scheduled[0]._when
-            deadline = max(0, when - self.time())
-            if timeout is None:
-                timeout = deadline
-            else:
-                timeout = min(timeout, deadline)
+            timeout = max(0, when - self.time())
 
         # TODO: Instrumentation only in debug mode?
         if logger.isEnabledFor(logging.INFO):