diff options
Diffstat (limited to 'Lib/queue.py')
-rw-r--r-- | Lib/queue.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/queue.py b/Lib/queue.py index 1dc72c4..c3296fe 100644 --- a/Lib/queue.py +++ b/Lib/queue.py @@ -6,7 +6,10 @@ except ImportError: import dummy_threading as threading from collections import deque from heapq import heappush, heappop -from time import steady as time +try: + from time import monotonic as time +except ImportError: + from time import time __all__ = ['Empty', 'Full', 'Queue', 'PriorityQueue', 'LifoQueue'] |