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

Skip to content

Commit 702f4f5

Browse files
committed
Issue #23804: Merge spelling and NEWS fixes from 3.5
2 parents 7386268 + 204bf0b commit 702f4f5

11 files changed

Lines changed: 22 additions & 16 deletions

File tree

Doc/library/pyexpat.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ XMLParser Objects
244244

245245
The following attributes contain values relating to the most recent error
246246
encountered by an :class:`xmlparser` object, and will only have correct values
247-
once a call to :meth:`Parse` or :meth:`ParseFile` has raised a
247+
once a call to :meth:`Parse` or :meth:`ParseFile` has raised an
248248
:exc:`xml.parsers.expat.ExpatError` exception.
249249

250250

Doc/library/urllib.request.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1138,7 +1138,7 @@ the returned bytes object to string once it determines or guesses
11381138
the appropriate encoding.
11391139

11401140
The following W3C document, https://www.w3.org/International/O-charset\ , lists
1141-
the various ways in which a (X)HTML or a XML document could have specified its
1141+
the various ways in which an (X)HTML or an XML document could have specified its
11421142
encoding information.
11431143

11441144
As the python.org website uses *utf-8* encoding as specified in its meta tag, we

Doc/library/xml.dom.minidom.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ document: the one that holds all others. Here is an example program::
9494

9595
When you are finished with a DOM tree, you may optionally call the
9696
:meth:`unlink` method to encourage early cleanup of the now-unneeded
97-
objects. :meth:`unlink` is a :mod:`xml.dom.minidom`\ -specific
97+
objects. :meth:`unlink` is an :mod:`xml.dom.minidom`\ -specific
9898
extension to the DOM API that renders the node and its descendants are
9999
essentially useless. Otherwise, Python's garbage collector will
100100
eventually take care of the objects in the tree.

Doc/library/xmlrpc.server.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ requests sent to Python CGI scripts.
292292

293293
.. method:: CGIXMLRPCRequestHandler.handle_request(request_text=None)
294294

295-
Handle a XML-RPC request. If *request_text* is given, it should be the POST
295+
Handle an XML-RPC request. If *request_text* is given, it should be the POST
296296
data provided by the HTTP server, otherwise the contents of stdin will be used.
297297

298298
Example::

Lib/distutils/tests/test_build_ext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def test_check_extensions_list(self):
242242
self.assertRaises(DistutilsSetupError, cmd.check_extensions_list, exts)
243243

244244
# second element of each tuple in 'ext_modules'
245-
# must be a ary (build info)
245+
# must be a dictionary (build info)
246246
exts = [('foo.bar', '')]
247247
self.assertRaises(DistutilsSetupError, cmd.check_extensions_list, exts)
248248

Lib/idlelib/NEWS.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ What's New in IDLE 3.5.0?
239239
Changes are written to HOME/.idlerc/config-extensions.cfg.
240240
Original patch by Tal Einat.
241241

242-
- Issue #16233: A module browser (File : Class Browser, Alt+C) requires a
242+
- Issue #16233: A module browser (File : Class Browser, Alt+C) requires an
243243
editor window with a filename. When Class Browser is requested otherwise,
244244
from a shell, output window, or 'Untitled' editor, Idle no longer displays
245245
an error box. It now pops up an Open Module box (Alt+M). If a valid name

Lib/test/test_ipaddress.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ def testRepr(self):
734734
self.assertEqual("IPv6Interface('::1/128')",
735735
repr(ipaddress.IPv6Interface('::1')))
736736

737-
# issue #16531: constructing IPv4Network from a (address, mask) tuple
737+
# issue #16531: constructing IPv4Network from an (address, mask) tuple
738738
def testIPv4Tuple(self):
739739
# /32
740740
ip = ipaddress.IPv4Address('192.0.2.1')
@@ -797,7 +797,7 @@ def testIPv4Tuple(self):
797797
self.assertEqual(ipaddress.IPv4Interface((3221225985, 24)),
798798
ipaddress.IPv4Interface('192.0.2.1/24'))
799799

800-
# issue #16531: constructing IPv6Network from a (address, mask) tuple
800+
# issue #16531: constructing IPv6Network from an (address, mask) tuple
801801
def testIPv6Tuple(self):
802802
# /128
803803
ip = ipaddress.IPv6Address('2001:db8::')

Lib/unittest/mock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ def _format_mock_failure_message(self, args, kwargs):
749749

750750
def _call_matcher(self, _call):
751751
"""
752-
Given a call (or simply a (args, kwargs) tuple), return a
752+
Given a call (or simply an (args, kwargs) tuple), return a
753753
comparison key suitable for matching with other calls.
754754
This is a best effort method which relies on the spec's signature,
755755
if available, or falls back on the arguments themselves.

Lib/xml/dom/expatbuilder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# minidom DOM and can't be used with other DOM implementations. This
1111
# is due, in part, to a lack of appropriate methods in the DOM (there is
1212
# no way to create Entity and Notation nodes via the DOM Level 2
13-
# interface), and for performance. The later is the cause of some fairly
13+
# interface), and for performance. The latter is the cause of some fairly
1414
# cryptic code.
1515
#
1616
# Performance hacks:

Lib/xmlrpc/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def register_instance(self, instance, allow_dotted_names=False):
184184
are considered private and will not be called by
185185
SimpleXMLRPCServer.
186186
187-
If a registered function matches a XML-RPC request, then it
187+
If a registered function matches an XML-RPC request, then it
188188
will be called instead of the registered instance.
189189
190190
If the optional allow_dotted_names argument is true and the

0 commit comments

Comments
 (0)