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.
P
Pablo Galindo committed
59af94fa61bf90adbe624508e909b5d6ef6e8464
Parent: ec12df1
Committed by Serhiy Storchaka <storchaka@gmail.com>
on 10/18/2017, 7:13:09 AM