summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-08-12 14:49:59 +0300
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-08-12 14:49:59 +0300
commitb4eea17d0755503d0fc8b85d7c31fe976d853b34 (patch)
tree47a6479a5532adc8b70276b2ece972c346707504
parent3eb5984f4c05ae663f24fe44e5d12e26214356f0 (diff)
downloadcpython-b4eea17d0755503d0fc8b85d7c31fe976d853b34.tar.gz
fix doctest for email.header docs
-rw-r--r--Doc/library/email.header.rst6
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=' ')