Skip to content

Commit 204bf0b

Browse files
committed
English spelling and grammar fixes
1 parent 0ca0ede commit 204bf0b

11 files changed

Lines changed: 17 additions & 17 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
@@ -293,7 +293,7 @@ requests sent to Python CGI scripts.
293293

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

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

299299
Example::

Lib/distutils/tests/test_build_ext.py

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

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

Lib/idlelib/NEWS.txt

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

198-
- Issue #16233: A module browser (File : Class Browser, Alt+C) requires a
198+
- Issue #16233: A module browser (File : Class Browser, Alt+C) requires an
199199
editor window with a filename. When Class Browser is requested otherwise,
200200
from a shell, output window, or 'Untitled' editor, Idle no longer displays
201201
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
@@ -744,7 +744,7 @@ def _format_mock_failure_message(self, args, kwargs):
744744

745745
def _call_matcher(self, _call):
746746
"""
747-
Given a call (or simply a (args, kwargs) tuple), return a
747+
Given a call (or simply an (args, kwargs) tuple), return a
748748
comparison key suitable for matching with other calls.
749749
This is a best effort method which relies on the spec's signature,
750750
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)