diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2017-10-18 08:13:09 +0100 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2017-10-18 10:13:09 +0300 |
commit | 59af94fa61bf90adbe624508e909b5d6ef6e8464 (patch) | |
tree | 74ee9a80276bed8eb99229acf2fb071a1d341400 /Python/ceval.c | |
parent | ec12df1e6e4d03a0d22956355308df695a8dff36 (diff) | |
download | cpython-git-59af94fa61bf90adbe624508e909b5d6ef6e8464.tar.gz |
bpo-31806: Use _PyTime_ROUND_TIMEOUT for the timeout argument parsing in more functions (#4026)
Fix timeout rounding in time.sleep(), threading.Lock.acquire() and
socket.socket.settimeout() to round correctly negative timeouts between -1.0 and
0.0. The functions now block waiting for events as expected. Previously, the
call was incorrectly non-blocking.
Diffstat (limited to 'Python/ceval.c')
0 files changed, 0 insertions, 0 deletions