diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-08-12 11:49:59 (GMT) |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-08-12 11:49:59 (GMT) |
commit | 199b78d41ae81ee33928bedbbc0910b98d4edc27 (patch) | |
tree | ac17b97af0f35ba62faa6f34182ecdf8587953b2 /Doc/library | |
parent | 5a5e8dd931b8a7e6fe3489270d6ba1a66530eab2 (diff) | |
download | cpython-199b78d41ae81ee33928bedbbc0910b98d4edc27.zip cpython-199b78d41ae81ee33928bedbbc0910b98d4edc27.tar.gz cpython-199b78d41ae81ee33928bedbbc0910b98d4edc27.tar.bz2 |
fix doctest for email.header docs
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/email.header.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/email.header.rst b/Doc/library/email.header.rst index 7d2dc2e..346d23f 100644 --- a/Doc/library/email.header.rst +++ b/Doc/library/email.header.rst @@ -31,8 +31,8 @@ For example:: >>> msg = Message() >>> h = Header('p\xf6stal', 'iso-8859-1') >>> msg['Subject'] = h - >>> print(msg.as_string()) - Subject: =?iso-8859-1?q?p=F6stal?= + >>> msg.as_string() + 'Subject: =?iso-8859-1?q?p=F6stal?=\n\n' @@ -176,7 +176,7 @@ The :mod:`email.header` module also provides the following convenient functions. >>> from email.header import decode_header >>> decode_header('=?iso-8859-1?q?p=F6stal?=') - [('p\xf6stal', 'iso-8859-1')] + [(b'p\xf6stal', 'iso-8859-1')] .. function:: make_header(decoded_seq, maxlinelen=None, header_name=None, continuation_ws=' ') |