Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f7d08e8

Browse files
committed
Merge 3.2
2 parents c739066 + 75e86a6 commit f7d08e8

3 files changed

Lines changed: 13 additions & 11 deletions

File tree

Doc/distutils/apiref.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2006,6 +2006,7 @@ This is described in more detail in :pep:`301`.
20062006

20072007
.. % todo
20082008
2009+
20092010
:mod:`distutils.command.check` --- Check the meta-data of a package
20102011
===================================================================
20112012

Doc/library/pprint.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,16 +193,16 @@ Example
193193
-------
194194

195195
To demonstrate several uses of the :func:`pprint` function and its parameters,
196-
let's fetch information about a package from PyPI::
196+
let's fetch information about a project from PyPI::
197197

198198
>>> import json
199199
>>> import pprint
200200
>>> from urllib.request import urlopen
201201
>>> with urlopen('http://pypi.python.org/pypi/configparser/json') as url:
202202
... http_info = url.info()
203203
... raw_data = url.read().decode(http_info.get_content_charset())
204-
>>> package_data = json.loads(raw_data)
205-
>>> result = {'headers': http_info.items(), 'body': package_data}
204+
>>> project_info = json.loads(raw_data)
205+
>>> result = {'headers': http_info.items(), 'body': project_info}
206206

207207
In its basic form, :func:`pprint` shows the whole object::
208208

Misc/NEWS

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -439,11 +439,12 @@ Library
439439

440440
- Issue #7311: fix html.parser to accept non-ASCII attribute values.
441441

442-
- Issue #11605: email.parser.BytesFeedParser was incorrectly converting multipart
443-
subpararts with an 8bit CTE into unicode instead of preserving the bytes.
442+
- Issue #11605: email.parser.BytesFeedParser was incorrectly converting
443+
multipart subparts with an 8-bit CTE into unicode instead of preserving the
444+
bytes.
444445

445-
- Issue #1690608: email.util.formataddr is now RFC2047 aware: it now has a
446-
charset parameter that defaults utf-8 which is used as the charset for RFC
446+
- Issue #1690608: email.util.formataddr is now RFC 2047 aware: it now has a
447+
charset parameter that defaults to utf-8 and is used as the charset for RFC
447448
2047 encoding when the realname contains non-ASCII characters.
448449

449450
- Issue #10963: Ensure that subprocess.communicate() never raises EPIPE.
@@ -597,7 +598,7 @@ Library
597598
the "n" as the flag argument and the file exists. The behavior matches
598599
the documentation and general logic.
599600

600-
- Issue #1162477: Postel Principal adjustment to email date parsing: handle the
601+
- Issue #1162477: Postel Principle adjustment to email date parsing: handle the
601602
fact that some non-compliant MUAs use '.' instead of ':' in time specs.
602603

603604
- Issue #11131: Fix sign of zero in decimal.Decimal plus and minus
@@ -824,7 +825,7 @@ Tests
824825
- New test_crashers added to exercise the scripts in the Lib/test/crashers
825826
directory and confirm they fail as expected
826827

827-
- Issue #11578: added test for the timeit module. Patch Michael Henry.
828+
- Issue #11578: added test for the timeit module. Patch by Michael Henry.
828829

829830
- Issue #11503: improve test coverage of posixpath.py. Patch by Evan Dandrea.
830831

@@ -1138,10 +1139,10 @@ Library
11381139
comparisons that could lead to infinite recursion.
11391140

11401141
- Issue #10686: the email package now :rfc:`2047`\ -encodes headers with
1141-
non-ASCII bytes (parsed by a Bytes Parser) when doing conversion to 7bit-clean
1142+
non-ASCII bytes (parsed by a BytesParser) when doing conversion to 7bit-clean
11421143
presentation, instead of replacing them with ?s.
11431144

1144-
- email.header.Header was incorrectly encoding folding white space when
1145+
- email.header.Header was incorrectly encoding folding whitespace when
11451146
rfc2047-encoding header values with embedded newlines, leaving them without
11461147
folding whitespace. It now uses the continuation_ws, as it does for
11471148
continuation lines that it creates itself.

0 commit comments

Comments
 (0)