[3.8] bpo-38421: Update email.utils documentation (GH-16678) (GH-17122)

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
(cherry picked from commit a12255d8de)


Co-authored-by: David K <dave@paddez.com>


https://bugs.python.org/issue38421



Automerge-Triggered-By: @encukou
This commit is contained in:
Miss Islington (bot) 2019-11-12 05:34:23 -08:00 committed by GitHub
parent 8ce1a9ce03
commit 29fd6a77d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -117,8 +117,8 @@ of the new API.
a 10-tuple; the first 9 elements make up a tuple that can be passed directly to a 10-tuple; the first 9 elements make up a tuple that can be passed directly to
:func:`time.mktime`, and the tenth is the offset of the date's timezone from UTC :func:`time.mktime`, and the tenth is the offset of the date's timezone from UTC
(which is the official term for Greenwich Mean Time) [#]_. If the input string (which is the official term for Greenwich Mean Time) [#]_. If the input string
has no timezone, the last element of the tuple returned is ``None``. Note that has no timezone, the last element of the tuple returned is ``0``, which represents
indexes 6, 7, and 8 of the result tuple are not usable. UTC. Note that indexes 6, 7, and 8 of the result tuple are not usable.
.. function:: parsedate_to_datetime(date) .. function:: parsedate_to_datetime(date)