Skip to content

Commit 51b90d2

Browse files
committed
Issue #24773: fix datetime.time constructor docstring
The default value of fold is zero, not True. Fix the docstring of the Python implementation.
1 parent 423c16b commit 51b90d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/datetime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,7 @@ def __new__(cls, hour=0, minute=0, second=0, microsecond=0, tzinfo=None, *, fold
10531053
hour, minute (required)
10541054
second, microsecond (default to zero)
10551055
tzinfo (default to None)
1056-
fold (keyword only, default to True)
1056+
fold (keyword only, default to zero)
10571057
"""
10581058
if isinstance(hour, bytes) and len(hour) == 6 and hour[0]&0x7F < 24:
10591059
# Pickle support

0 commit comments

Comments
 (0)