Commit 3d7c878f authored by Victor Stinner's avatar Victor Stinner

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.
parent 071eca3f
...@@ -6,7 +6,7 @@ except ImportError: ...@@ -6,7 +6,7 @@ except ImportError:
import dummy_threading as threading import dummy_threading as threading
from collections import deque from collections import deque
from heapq import heappush, heappop from heapq import heappush, heappop
from time import time from time import steady as time
__all__ = ['Empty', 'Full', 'Queue', 'PriorityQueue', 'LifoQueue'] __all__ = ['Empty', 'Full', 'Queue', 'PriorityQueue', 'LifoQueue']
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
import sys as _sys import sys as _sys
import _thread import _thread
from time import time as _time, sleep as _sleep from time import steady as _time, sleep as _sleep
from traceback import format_exc as _format_exc from traceback import format_exc as _format_exc
from _weakrefset import WeakSet from _weakrefset import WeakSet
......
...@@ -24,6 +24,10 @@ Core and Builtins ...@@ -24,6 +24,10 @@ Core and Builtins
Library Library
------- -------
- 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.
- Issue #13248: Remove lib2to3.pytree.Base.get_prefix/set_prefix. - Issue #13248: Remove lib2to3.pytree.Base.get_prefix/set_prefix.
- Issue #14234: CVE-2012-0876: Randomize hashes of xml attributes in the hash - Issue #14234: CVE-2012-0876: Randomize hashes of xml attributes in the hash
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment