From f0ab5d6e7f46ec8d06d2a62db0e316cd7443238f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Araujo?= Date: Sun, 29 May 2011 03:43:59 +0200 Subject: Fix typos in Misc/NEWS --- Misc/NEWS | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Misc/NEWS b/Misc/NEWS index ce6c964..b561e9b 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -285,7 +285,7 @@ Library - Issue #7311: fix html.parser to accept non-ASCII attribute values. - Issue #11605: email.parser.BytesFeedParser was incorrectly converting - multipart subpararts with an 8bit CTE into unicode instead of preserving the + multipart subparts with an 8-bit CTE into unicode instead of preserving the bytes. - Issue #10963: Ensure that subprocess.communicate() never raises EPIPE. @@ -482,7 +482,7 @@ Tests - Issue #11577: improve test coverage of binhex.py. Patch by Arkady Koplyarov. -- Issue #11578: added test for the timeit module. Patch Michael Henry. +- Issue #11578: added test for the timeit module. Patch by Michael Henry. - Issue #11503: improve test coverage of posixpath.py. Patch by Evan Dandrea. @@ -782,10 +782,10 @@ Library comparisons that could lead to infinite recursion. - Issue #10686: the email package now :rfc:`2047`\ -encodes headers with - non-ASCII bytes (parsed by a Bytes Parser) when doing conversion to 7bit-clean + non-ASCII bytes (parsed by a BytesParser) when doing conversion to 7bit-clean presentation, instead of replacing them with ?s. -- email.header.Header was incorrectly encoding folding white space when +- email.header.Header was incorrectly encoding folding whitespace when rfc2047-encoding header values with embedded newlines, leaving them without folding whitespace. It now uses the continuation_ws, as it does for continuation lines that it creates itself. -- cgit v0.12 From 6a21f5527cab884e2d7dd4db025b5f9a7bd48dd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Araujo?= Date: Sun, 29 May 2011 03:46:31 +0200 Subject: =?UTF-8?q?Don=E2=80=99t=20misuse=20=E2=80=9Cpackage=20data?= =?UTF-8?q?=E2=80=9D=20in=20pprint=20example?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Doc/library/pprint.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/library/pprint.rst b/Doc/library/pprint.rst index 7bebd8c..4169b64 100644 --- a/Doc/library/pprint.rst +++ b/Doc/library/pprint.rst @@ -192,7 +192,7 @@ Example ------- To demonstrate several uses of the :func:`pprint` function and its parameters, -let's fetch information about a package from PyPI:: +let's fetch information about a project from PyPI:: >>> import json >>> import pprint @@ -200,8 +200,8 @@ let's fetch information about a package from PyPI:: >>> with urlopen('http://pypi.python.org/pypi/configparser/json') as url: ... http_info = url.info() ... raw_data = url.read().decode(http_info.get_content_charset()) - >>> package_data = json.loads(raw_data) - >>> result = {'headers': http_info.items(), 'body': package_data} + >>> project_info = json.loads(raw_data) + >>> result = {'headers': http_info.items(), 'body': project_info} In its basic form, :func:`pprint` shows the whole object:: -- cgit v0.12 From 87418afb3b6c6ef220df439004501093609abb2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Araujo?= Date: Sun, 29 May 2011 03:48:49 +0200 Subject: Fix typo in 0311f62714f7 --- Doc/c-api/veryhigh.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/c-api/veryhigh.rst b/Doc/c-api/veryhigh.rst index d1940a8..73cd1d2 100644 --- a/Doc/c-api/veryhigh.rst +++ b/Doc/c-api/veryhigh.rst @@ -34,7 +34,7 @@ the same library that the Python runtime is using. according to the user's locale). It is important to note that the argument list may be modified (but the contents of the strings pointed to by the argument list are not). The return value will be - ```0``` if the interpreter exits normally (ie, without an + ``0`` if the interpreter exits normally (i.e. without an exception), ``1`` if the interpreter exits due to an exception, or ``2`` if the parameter list does not represent a valid Python command line. -- cgit v0.12