diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-08-12 14:49:59 +0300 |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2012-08-12 14:49:59 +0300 |
commit | b4eea17d0755503d0fc8b85d7c31fe976d853b34 (patch) | |
tree | 47a6479a5532adc8b70276b2ece972c346707504 | |
parent | 3eb5984f4c05ae663f24fe44e5d12e26214356f0 (diff) | |
download | cpython-b4eea17d0755503d0fc8b85d7c31fe976d853b34.tar.gz |
fix doctest for email.header docs
-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 7d2dc2e61e..346d23fc8c 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=' ') |