summaryrefslogtreecommitdiff
path: root/Lib/email
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-02-12 20:16:42 +0200
committerGitHub <noreply@github.com>2018-02-12 20:16:42 +0200
commit17cec70a38b297779b8fd3f081fb041d45ae1dff (patch)
treee3545c6f1e41d358d42d30f9fecd53658697478d /Lib/email
parent40290647167d96752b924ff109cc527aca729872 (diff)
downloadcpython-git-17cec70a38b297779b8fd3f081fb041d45ae1dff.tar.gz
bpo-30109: Fix reindent.py for non-ASCII files. (#5637)
It now processes files as binary streams. This also fixes "make reindent".
Diffstat (limited to 'Lib/email')
-rw-r--r--Lib/email/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/email/utils.py b/Lib/email/utils.py
index a74db42286..5b22521e58 100644
--- a/Lib/email/utils.py
+++ b/Lib/email/utils.py
@@ -213,7 +213,7 @@ def parsedate_tz(data):
def parseaddr(addr):
"""
Parse addr into its constituent realname and email address parts.
-
+
Return a tuple of realname and email address, unless the parse fails, in
which case return a 2-tuple of ('', '').
"""