Commit 199b78d4 authored by Andrew Svetlov's avatar Andrew Svetlov

fix doctest for email.header docs

parent 5a5e8dd9
...@@ -31,8 +31,8 @@ For example:: ...@@ -31,8 +31,8 @@ For example::
>>> msg = Message() >>> msg = Message()
>>> h = Header('p\xf6stal', 'iso-8859-1') >>> h = Header('p\xf6stal', 'iso-8859-1')
>>> msg['Subject'] = h >>> msg['Subject'] = h
>>> print(msg.as_string()) >>> msg.as_string()
Subject: =?iso-8859-1?q?p=F6stal?= 'Subject: =?iso-8859-1?q?p=F6stal?=\n\n'
...@@ -176,7 +176,7 @@ The :mod:`email.header` module also provides the following convenient functions. ...@@ -176,7 +176,7 @@ The :mod:`email.header` module also provides the following convenient functions.
>>> from email.header import decode_header >>> from email.header import decode_header
>>> decode_header('=?iso-8859-1?q?p=F6stal?=') >>> 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=' ') .. function:: make_header(decoded_seq, maxlinelen=None, header_name=None, continuation_ws=' ')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment