mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
"Port" the fix for issue 1974 from the trunk (2.7). Because Python 3.x does things much better, less changes are necessary.
This also shoves test_email_codecs_rename.py onto test_email_codecs.py even though the test needs to be ported to Python 3.
This commit is contained in:
parent
35d1f00902
commit
70d61cedf7
5 changed files with 7 additions and 84 deletions
|
@ -138,7 +138,7 @@ class Generator:
|
|||
else:
|
||||
# Header's got lots of smarts, so use it.
|
||||
header = Header(v, maxlinelen=self._maxheaderlen,
|
||||
header_name=h, continuation_ws='\t')
|
||||
header_name=h)
|
||||
print(header.encode(), file=self._fp)
|
||||
# A blank line always separates headers from body
|
||||
print(file=self._fp)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue