summaryrefslogtreecommitdiffstats
path: root/Lib/email/header.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2011-03-16 22:27:34 (GMT)
committerR David Murray <rdmurray@bitdance.com>2011-03-16 22:27:34 (GMT)
commit4e4326829f2997624261628081110bb87c090711 (patch)
tree6f78da210fb486df2a75faa2597351d0ac3b5941 /Lib/email/header.py
parenta88da67bcbf8b87af613751796998538afb26be0 (diff)
parentde91276a5c90b9d3e42866054e48d255a37981b3 (diff)
downloadcpython-4e4326829f2997624261628081110bb87c090711.zip
cpython-4e4326829f2997624261628081110bb87c090711.tar.gz
cpython-4e4326829f2997624261628081110bb87c090711.tar.bz2
Merge #11401 fix from 3.1.
Diffstat (limited to 'Lib/email/header.py')
-rw-r--r--Lib/email/header.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/email/header.py b/Lib/email/header.py
index d3118b0..8c32514 100644
--- a/Lib/email/header.py
+++ b/Lib/email/header.py
@@ -314,7 +314,7 @@ class Header:
self._continuation_ws, splitchars)
for string, charset in self._chunks:
lines = string.splitlines()
- formatter.feed(lines[0], charset)
+ formatter.feed(lines[0] if lines else '', charset)
for line in lines[1:]:
formatter.newline()
if charset.header_encoding is not None: