summaryrefslogtreecommitdiffstats
path: root/Doc/library/email.utils.rst
diff options
context:
space:
mode:
authorDavid K <dave@paddez.com>2019-11-12 12:38:46 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-11-12 12:38:46 (GMT)
commita12255d8def0c82560545e66c1be981a447751c3 (patch)
tree2ece4180e113babf66170a725b4e7e094297abad /Doc/library/email.utils.rst
parent106271568c58cfebae58f0c52b640dbe716ba2ce (diff)
downloadcpython-a12255d8def0c82560545e66c1be981a447751c3.zip
cpython-a12255d8def0c82560545e66c1be981a447751c3.tar.gz
cpython-a12255d8def0c82560545e66c1be981a447751c3.tar.bz2
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
Diffstat (limited to 'Doc/library/email.utils.rst')
-rw-r--r--Doc/library/email.utils.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/email.utils.rst b/Doc/library/email.utils.rst
index 63fae2a..4d0e920 100644
--- a/Doc/library/email.utils.rst
+++ b/Doc/library/email.utils.rst
@@ -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)