diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-09-02 23:18:25 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-09-02 23:18:25 +0200 |
commit | f3579a8d0eed6151a1e2f34f6cad0677bfe45246 (patch) | |
tree | 99cc0d3b0dbe0f12f8a4985d8ba8daa6fda7e32b /Lib/sched.py | |
parent | 9bc89143ea19a6827ddb5cf8eab7ee1a8effd17e (diff) | |
download | cpython-f3579a8d0eed6151a1e2f34f6cad0677bfe45246.tar.gz |
Issue #22043: time.monotonic() is now always available
threading.Lock.acquire(), threading.RLock.acquire() and socket operations now
use a monotonic clock, instead of the system clock, when a timeout is used.
Diffstat (limited to 'Lib/sched.py')
-rw-r--r-- | Lib/sched.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/sched.py b/Lib/sched.py index 2e6b00a2a2..409d126ef5 100644 --- a/Lib/sched.py +++ b/Lib/sched.py @@ -35,10 +35,7 @@ try: import threading except ImportError: import dummy_threading as threading -try: - from time import monotonic as _time -except ImportError: - from time import time as _time +from time import monotonic as _time __all__ = ["scheduler"] |