cpython: df908a9d97a6 (original) (raw)

Mercurial > cpython

changeset 102325:df908a9d97a6

Issue #23804: Merge spelling and NEWS fixes from 3.5 [#23804]

Martin Panter vadmium+py@gmail.com
date Mon, 11 Jul 2016 12:54:44 +0000
parents 4ef2404d343e(current diff)6aca24745831(diff)
children 2a34cef7681b
files Doc/library/xmlrpc.server.rst Lib/distutils/tests/test_build_ext.py Lib/idlelib/NEWS.txt Lib/test/test_ipaddress.py Lib/unittest/mock.py Lib/xmlrpc/server.py Misc/NEWS
diffstat 11 files changed, 22 insertions(+), 16 deletions(-)[+] [-] Doc/library/pyexpat.rst 2 Doc/library/urllib.request.rst 2 Doc/library/xml.dom.minidom.rst 2 Doc/library/xmlrpc.server.rst 2 Lib/distutils/tests/test_build_ext.py 2 Lib/idlelib/NEWS.txt 2 Lib/test/test_ipaddress.py 4 Lib/unittest/mock.py 2 Lib/xml/dom/expatbuilder.py 2 Lib/xmlrpc/server.py 2 Misc/NEWS 16

line wrap: on

line diff

--- a/Doc/library/pyexpat.rst +++ b/Doc/library/pyexpat.rst @@ -244,7 +244,7 @@ XMLParser Objects The following attributes contain values relating to the most recent error encountered by an :class:xmlparser object, and will only have correct values -once a call to :meth:Parse or :meth:ParseFile has raised a +once a call to :meth:Parse or :meth:ParseFile has raised an :exc:xml.parsers.expat.ExpatError exception.

--- a/Doc/library/urllib.request.rst +++ b/Doc/library/urllib.request.rst @@ -1138,7 +1138,7 @@ the returned bytes object to string once the appropriate encoding. The following W3C document, https://www.w3.org/International/O-charset\ , lists -the various ways in which a (X)HTML or a XML document could have specified its +the various ways in which an (X)HTML or an XML document could have specified its encoding information. As the python.org website uses utf-8 encoding as specified in its meta tag, we

--- a/Doc/library/xml.dom.minidom.rst +++ b/Doc/library/xml.dom.minidom.rst @@ -94,7 +94,7 @@ document: the one that holds all others. When you are finished with a DOM tree, you may optionally call the :meth:unlink method to encourage early cleanup of the now-unneeded -objects. :meth:unlink is a :mod:xml.dom.minidom\ -specific +objects. :meth:unlink is an :mod:xml.dom.minidom\ -specific extension to the DOM API that renders the node and its descendants are essentially useless. Otherwise, Python's garbage collector will eventually take care of the objects in the tree.

--- a/Doc/library/xmlrpc.server.rst +++ b/Doc/library/xmlrpc.server.rst @@ -292,7 +292,7 @@ requests sent to Python CGI scripts. .. method:: CGIXMLRPCRequestHandler.handle_request(request_text=None)

Example::

--- a/Lib/distutils/tests/test_build_ext.py +++ b/Lib/distutils/tests/test_build_ext.py @@ -242,7 +242,7 @@ class BuildExtTestCase(TempdirManager, self.assertRaises(DistutilsSetupError, cmd.check_extensions_list, exts) # second element of each tuple in 'ext_modules'

--- a/Lib/idlelib/NEWS.txt +++ b/Lib/idlelib/NEWS.txt @@ -239,7 +239,7 @@ What's New in IDLE 3.5.0? Changes are written to HOME/.idlerc/config-extensions.cfg. Original patch by Tal Einat. -- Issue #16233: A module browser (File : Class Browser, Alt+C) requires a +- Issue #16233: A module browser (File : Class Browser, Alt+C) requires an editor window with a filename. When Class Browser is requested otherwise, from a shell, output window, or 'Untitled' editor, Idle no longer displays an error box. It now pops up an Open Module box (Alt+M). If a valid name

--- a/Lib/test/test_ipaddress.py +++ b/Lib/test/test_ipaddress.py @@ -734,7 +734,7 @@ class IpaddrUnitTest(unittest.TestCase): self.assertEqual("IPv6Interface('::1/128')", repr(ipaddress.IPv6Interface('::1')))

@@ -797,7 +797,7 @@ class IpaddrUnitTest(unittest.TestCase): self.assertEqual(ipaddress.IPv4Interface((3221225985, 24)), ipaddress.IPv4Interface('192.0.2.1/24'))

--- a/Lib/unittest/mock.py +++ b/Lib/unittest/mock.py @@ -749,7 +749,7 @@ class NonCallableMock(Base): def _call_matcher(self, _call): """

--- a/Lib/xml/dom/expatbuilder.py +++ b/Lib/xml/dom/expatbuilder.py @@ -10,7 +10,7 @@ This avoids all the overhead of SAX and

minidom DOM and can't be used with other DOM implementations. This

is due, in part, to a lack of appropriate methods in the DOM (there is

no way to create Entity and Notation nodes via the DOM Level 2

-# interface), and for performance. The later is the cause of some fairly +# interface), and for performance. The latter is the cause of some fairly

cryptic code.

#

Performance hacks:

--- a/Lib/xmlrpc/server.py +++ b/Lib/xmlrpc/server.py @@ -184,7 +184,7 @@ class SimpleXMLRPCDispatcher: are considered private and will not be called by SimpleXMLRPCServer.

If the optional allow_dotted_names argument is true and the

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -18,8 +18,8 @@ Core and Builtins be re-enabled using the "-X showalloccount" option. It now outputs to stderr instead of stdout. -- Issue #27443: length_hint() of bytearray itearator no longer return