commit | 6613fb8412ce9551875c200af77d4c41f6911772 | [log] [tgz] |
---|---|---|
author | Barry Warsaw <barry@python.org> | Mon Mar 17 20:36:20 2003 +0000 |
committer | Barry Warsaw <barry@python.org> | Mon Mar 17 20:36:20 2003 +0000 |
tree | 3f986932595dca83c77826613018de246352d58d | |
parent | 240754933e9c93eb5d4e99184d9167451ae45e16 [diff] |
_encode_chunks(): Throw out empty chunks.
diff --git a/Lib/email/Header.py b/Lib/email/Header.py index 66a18c8..624e7c4 100644 --- a/Lib/email/Header.py +++ b/Lib/email/Header.py
@@ -361,6 +361,8 @@ # =?charset2?b?SvxyZ2VuIEL2aW5n?=" chunks = [] for header, charset in newchunks: + if not header: + continue if charset is None or charset.header_encoding is None: s = header else: