]> granicus.if.org Git - python/commitdiff
Issue #24773: fix datetime.time constructor docstring
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 4 Jan 2017 11:01:16 +0000 (12:01 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 4 Jan 2017 11:01:16 +0000 (12:01 +0100)
The default value of fold is zero, not True. Fix the docstring of the Python
implementation.

Lib/datetime.py

index 754010968429c46908f7d56bc5d3a87cdc3b6e07..5d5579c1c6f4be483d36057bbd08abfb79c8e6b5 100644 (file)
@@ -1053,7 +1053,7 @@ class time:
         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