[Python-checkins] python/dist/src/Lib/email Header.py,1.25,1.26
bwarsaw@users.sourceforge.net
bwarsaw@users.sourceforge.net
2003年3月17日 12:36:30 -0800
Update of /cvsroot/python/python/dist/src/Lib/email
In directory sc8-pr-cvs1:/tmp/cvs-serv22307
Modified Files:
Header.py
Log Message:
_encode_chunks(): Throw out empty chunks.
Index: Header.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/email/Header.py,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** Header.py 10 Mar 2003 15:14:08 -0000 1.25
--- Header.py 17 Mar 2003 20:36:20 -0000 1.26
***************
*** 362,365 ****
--- 362,367 ----
chunks = []
for header, charset in newchunks:
+ if not header:
+ continue
if charset is None or charset.header_encoding is None:
s = header