File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -125,9 +125,9 @@ of the new API.
125
125
126
126
The inverse of :func: `format_datetime `. Performs the same function as
127
127
:func: `parsedate `, but on success returns a :mod: `~datetime.datetime `;
128
- otherwise ``None `` may be returned if parsing fails, or a `` ValueError ``
129
- raised if *date * contains an invalid value such as an hour greater than
130
- 23 or a timezone offset not between -24 and 24 hours. If
128
+ otherwise ``TypeError `` is raised if parsing fails because of an invalid input,
129
+ or a `` ValueError `` raised if *date * contains an invalid value such as an hour
130
+ greater than 23 or a timezone offset not between -24 and 24 hours. If
131
131
the input date has a timezone of ``-0000 ``, the ``datetime `` will be a naive
132
132
``datetime ``, and if the date is conforming to the RFCs it will represent a
133
133
time in UTC but with no indication of the actual source timezone of the
You can’t perform that action at this time.
0 commit comments