(original) (raw)

changeset: 105993:5c02f689c62c branch: 3.6 parent: 105991:72e48ff7b169 user: Victor Stinner victor.stinner@gmail.com date: Wed Jan 04 12:01:16 2017 +0100 files: Lib/datetime.py description: Issue #24773: fix datetime.time constructor docstring The default value of fold is zero, not True. Fix the docstring of the Python implementation. diff -r 72e48ff7b169 -r 5c02f689c62c Lib/datetime.py --- a/Lib/datetime.py Tue Jan 03 23:47:12 2017 +0100 +++ b/Lib/datetime.py Wed Jan 04 12:01:16 2017 +0100 @@ -1053,7 +1053,7 @@ hour, minute (required) second, microsecond (default to zero) 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: # Pickle support /victor.stinner@gmail.com