diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2012-03-15 00:22:16 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2012-03-15 00:22:16 (GMT) |
commit | 3d7c878fe370e59b142bac9bc32c67b4ac9d949e (patch) | |
tree | e987b46bdd66b5b8dd7d1b59da4c46d782131676 /Lib/queue.py | |
parent | 071eca3f5c55f127f754bd5575123ec94d8c3eaa (diff) | |
download | cpython-3d7c878fe370e59b142bac9bc32c67b4ac9d949e.zip cpython-3d7c878fe370e59b142bac9bc32c67b4ac9d949e.tar.gz cpython-3d7c878fe370e59b142bac9bc32c67b4ac9d949e.tar.bz2 |
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.
Diffstat (limited to 'Lib/queue.py')
-rw-r--r-- | Lib/queue.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/queue.py b/Lib/queue.py index ba608c5..1dc72c4 100644 --- a/Lib/queue.py +++ b/Lib/queue.py @@ -6,7 +6,7 @@ except ImportError: 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'] |