Skip to content

Commit a12255d

Browse files
Irishsmurfmiss-islington
authored andcommitted
bpo-38421: Update email.utils documentation (GH-16678)
Updates documentation around email.utils.parsedate_tz(). Currently, the documentation specifies that when a string without a is timezone passed to parsedate_tz(), the last tuple is returned as ```None```. This is no longer true since Python 3.3 https://bugs.python.org/issue38421
1 parent 1062715 commit a12255d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/email.utils.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ of the new API.
117117
a 10-tuple; the first 9 elements make up a tuple that can be passed directly to
118118
:func:`time.mktime`, and the tenth is the offset of the date's timezone from UTC
119119
(which is the official term for Greenwich Mean Time) [#]_. If the input string
120-
has no timezone, the last element of the tuple returned is ``None``. Note that
121-
indexes 6, 7, and 8 of the result tuple are not usable.
120+
has no timezone, the last element of the tuple returned is ``0``, which represents
121+
UTC. Note that indexes 6, 7, and 8 of the result tuple are not usable.
122122

123123

124124
.. function:: parsedate_to_datetime(date)

0 commit comments

Comments
 (0)