[Python-checkins] cpython: fix doctest for email.header docs
andrew.svetlov
python-checkins at python.org
Sun Aug 12 14:16:52 CEST 2012
http://hg.python.org/cpython/rev/c71ae4007aa0
changeset: 78524:c71ae4007aa0
user: Andrew Svetlov <andrew.svetlov at gmail.com>
date: Sun Aug 12 14:49:59 2012 +0300
summary:
fix doctest for email.header docs
files:
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
--- a/Doc/library/email.header.rst
+++ b/Doc/library/email.header.rst
@@ -31,8 +31,8 @@
>>> 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 @@
>>> 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=' ')
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list