Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(867)

Unified Diff: Lib/queue.py

Issue 22043: Use a monotonic clock to compute timeouts
Patch Set: Created 3 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Include/pytime.h ('k') | Lib/sched.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/queue.py Sun Aug 31 14:47:56 2014 +0200
+++ b/Lib/queue.py Sun Aug 31 15:02:13 2014 +0200
@@ -6,10 +6,7 @@ except ImportError:
import dummy_threading as threading
from collections import deque
from heapq import heappush, heappop
-try:
- from time import monotonic as time
-except ImportError:
- from time import time
+from time import monotonic as time
__all__ = ['Empty', 'Full', 'Queue', 'PriorityQueue', 'LifoQueue']
« no previous file with comments | « Include/pytime.h ('k') | Lib/sched.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7