summaryrefslogtreecommitdiff
path: root/Lib/queue.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2012-03-15 01:22:16 +0100
committerVictor Stinner <victor.stinner@gmail.com>2012-03-15 01:22:16 +0100
commit3d7c878fe370e59b142bac9bc32c67b4ac9d949e (patch)
treee987b46bdd66b5b8dd7d1b59da4c46d782131676 /Lib/queue.py
parent071eca3f5c55f127f754bd5575123ec94d8c3eaa (diff)
downloadcpython-git-3d7c878fe370e59b142bac9bc32c67b4ac9d949e.tar.gz
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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/queue.py b/Lib/queue.py
index ba608c5a4c..1dc72c4bbe 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']