]> granicus.if.org Git - python/commitdiff
_encode_chunks(): Throw out empty chunks.
authorBarry Warsaw <barry@python.org>
Mon, 17 Mar 2003 20:36:20 +0000 (20:36 +0000)
committerBarry Warsaw <barry@python.org>
Mon, 17 Mar 2003 20:36:20 +0000 (20:36 +0000)
Lib/email/Header.py

index 66a18c88a43a139d3af3ef8f11c2b5a6f9ccf125..624e7c445b91007f552d5803964577c77d89d9b8 100644 (file)
@@ -361,6 +361,8 @@ class Header:
         #  =?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: