• Miss Islington (bot)'s avatar
    [3.6] bpo-31806: Use _PyTime_ROUND_TIMEOUT for the timeout argument parsing in… · be4e9cc7
    Miss Islington (bot) yazdı
    [3.6] bpo-31806: Use _PyTime_ROUND_TIMEOUT for the timeout argument parsing in more functions (GH-4026) (#4032)
    
    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.
    (cherry picked from commit 59af94fa)
    be4e9cc7
_threadmodule.c 43.4 KB