diff Lib/queue.py @ 75675:d97ae725814c

Issue #14222: Use the new time.steady() function instead of time.time() for timeout in queue and threading modules to not be affected of system time update.
author Victor Stinner <victor.stinner@gmail.com>
date Thu, 15 Mar 2012 01:22:16 +0100
parents 32eae3c48631
children 76d2e0761d18
line wrap: on
line diff
--- a/Lib/queue.py	Thu Mar 15 01:17:09 2012 +0100
+++ b/Lib/queue.py	Thu Mar 15 01:22:16 2012 +0100
@@ -6,7 +6,7 @@
     import dummy_threading as threading
 from collections import deque
 from heapq import heappush, heappop
-from time import time
+from time import steady as time
 
 __all__ = ['Empty', 'Full', 'Queue', 'PriorityQueue', 'LifoQueue']