Kaydet (Commit) 51b90d28 authored tarafından Victor Stinner's avatar Victor Stinner

Issue #24773: fix datetime.time constructor docstring

The default value of fold is zero, not True. Fix the docstring of the Python
implementation.
üst 423c16b4
...@@ -1053,7 +1053,7 @@ class time: ...@@ -1053,7 +1053,7 @@ class time:
hour, minute (required) hour, minute (required)
second, microsecond (default to zero) second, microsecond (default to zero)
tzinfo (default to None) tzinfo (default to None)
fold (keyword only, default to True) fold (keyword only, default to zero)
""" """
if isinstance(hour, bytes) and len(hour) == 6 and hour[0]&0x7F < 24: if isinstance(hour, bytes) and len(hour) == 6 and hour[0]&0x7F < 24:
# Pickle support # Pickle support
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment