From ae58649721ec898ea4a101b0861e16fff3511cfa Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 2 Sep 2014 23:18:25 +0200 Subject: Issue #22043: time.monotonic() is now always available threading.Lock.acquire(), threading.RLock.acquire() and socket operations now use a monotonic clock, instead of the system clock, when a timeout is used. --- Lib/queue.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Lib/queue.py') diff --git a/Lib/queue.py b/Lib/queue.py index 3cee36b8961..572425e844c 100644 --- a/Lib/queue.py +++ b/Lib/queue.py @@ -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'] -- cgit v1.2.3