]> granicus.if.org Git - python/commitdiff
fix doctest for email.header docs
authorAndrew Svetlov <andrew.svetlov@gmail.com>
Sun, 12 Aug 2012 11:49:59 +0000 (14:49 +0300)
committerAndrew Svetlov <andrew.svetlov@gmail.com>
Sun, 12 Aug 2012 11:49:59 +0000 (14:49 +0300)
Doc/library/email.header.rst

index 7d2dc2e61ec8399e98e9097604feffae02089540..346d23fc8cd5f385bc2b6a7b7470b6b99f4c3a22 100644 (file)
@@ -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=' ')