diff options
| author | R David Murray <rdmurray@bitdance.com> | 2011-03-16 22:28:07 (GMT) |
|---|---|---|
| committer | R David Murray <rdmurray@bitdance.com> | 2011-03-16 22:28:07 (GMT) |
| commit | cfec350e63ee601ce5f777d0780355b06410ccf9 (patch) | |
| tree | 5427bf6d5574cf2b00c5684aee3be23ec10788b4 /Lib/email/header.py | |
| parent | 832ebeb9d4910f15130e4e337204f18b0ed7b37b (diff) | |
| parent | 4e4326829f2997624261628081110bb87c090711 (diff) | |
| download | cpython-cfec350e63ee601ce5f777d0780355b06410ccf9.zip cpython-cfec350e63ee601ce5f777d0780355b06410ccf9.tar.gz cpython-cfec350e63ee601ce5f777d0780355b06410ccf9.tar.bz2 | |
Merge #11401 fix from 3.2.
Diffstat (limited to 'Lib/email/header.py')
| -rw-r--r-- | Lib/email/header.py | 2 |
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: |
