mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
[3.6] bpo-31786: Make functions in the select module blocking when timeout is a small negative value. (GH-4003). (#4022)
(cherry picked from commit 2c15b29aea
)
This commit is contained in:
parent
1781480254
commit
95602b368b
7 changed files with 78 additions and 18 deletions
|
@ -36,6 +36,8 @@ class _PyTime(enum.IntEnum):
|
|||
ROUND_CEILING = 1
|
||||
# Round to nearest with ties going to nearest even integer
|
||||
ROUND_HALF_EVEN = 2
|
||||
# Round away from zero
|
||||
ROUND_UP = 3
|
||||
|
||||
# Rounding modes supported by PyTime
|
||||
ROUNDING_MODES = (
|
||||
|
@ -43,6 +45,7 @@ ROUNDING_MODES = (
|
|||
(_PyTime.ROUND_FLOOR, decimal.ROUND_FLOOR),
|
||||
(_PyTime.ROUND_CEILING, decimal.ROUND_CEILING),
|
||||
(_PyTime.ROUND_HALF_EVEN, decimal.ROUND_HALF_EVEN),
|
||||
(_PyTime.ROUND_UP, decimal.ROUND_UP),
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue