[Python-checkins] cpython (3.6): Issue #24773: fix datetime.time constructor docstring
victor.stinner
python-checkins at python.org
Wed Jan 4 06:02:35 EST 2017
https://hg.python.org/cpython/rev/5c02f689c62c
changeset: 105993:5c02f689c62c
branch: 3.6
parent: 105991:72e48ff7b169
user: Victor Stinner <victor.stinner at gmail.com>
date: Wed Jan 04 12:01:16 2017 +0100
summary:
Issue #24773: fix datetime.time constructor docstring
The default value of fold is zero, not True. Fix the docstring of the Python
implementation.
files:
Lib/datetime.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/datetime.py b/Lib/datetime.py
--- a/Lib/datetime.py
+++ b/Lib/datetime.py
@@ -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
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list