Skip to content

Commit 4860a00

Browse files
committed
Update to match the error message.
1 parent 1f07bc6 commit 4860a00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/datetime.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2635,7 +2635,7 @@ will be pulled from the default value.
26352635
>>> datetime.strptime(value, "%m/%d")
26362636
Traceback (most recent call last):
26372637
...
2638-
ValueError: day is out of range for month
2638+
ValueError: day 29 must be in range 1..28 for month 2 in year 1900
26392639
>>> datetime.strptime(f"1904 {value}", "%Y %m/%d")
26402640
datetime.datetime(1904, 2, 29, 0, 0)
26412641

0 commit comments

Comments
 (0)