]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.7] bpo-38421: Update email.utils documentation (GH-16678) (GH-17121)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 12 Nov 2019 13:34:16 +0000 (05:34 -0800)
committerGitHub <noreply@github.com>
Tue, 12 Nov 2019 13:34:16 +0000 (05:34 -0800)
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 a12255d8def0c82560545e66c1be981a447751c3)

Co-authored-by: David K <dave@paddez.com>
https://bugs.python.org/issue38421

Automerge-Triggered-By: @encukou
Doc/library/email.utils.rst

index 63fae2ab84e213083a2c10d05f3f2fad00628cc7..4d0e920eb0ad2951727b01891222351d9bea4f7a 100644 (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
    :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
-   has no timezone, the last element of the tuple returned is ``None``.  Note that
-   indexes 6, 7, and 8 of the result tuple are not usable.
+   has no timezone, the last element of the tuple returned is ``0``, which represents
+   UTC. Note that indexes 6, 7, and 8 of the result tuple are not usable.
 
 
 .. function:: parsedate_to_datetime(date)