Skip to content

Commit bf2dca9

Browse files
committed
English spelling and grammar fixes
1 parent b362f75 commit bf2dca9

15 files changed

Lines changed: 17 additions & 17 deletions

File tree

Doc/library/aetypes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ etc. For OSA types that have no direct Python counterpart this module declares
1919
classes. Packing and unpacking instances of these classes is handled
2020
automatically by :mod:`aepack`.
2121

22-
An object specifier is essentially an address of an object implemented in a
22+
An object specifier is essentially an address of an object implemented in an
2323
Apple Event server. An Apple Event specifier is used as the direct object for an
2424
Apple Event or as the argument of an optional parameter. The :mod:`aetypes`
2525
module contains the base classes for OSA classes and properties, which are used

Doc/library/pyexpat.rst

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

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

276276

Doc/library/simplexmlrpcserver.rst

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

274274
.. method:: CGIXMLRPCRequestHandler.handle_request([request_text = None])
275275

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

279279
Example::

Doc/library/xml.dom.minidom.rst

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

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

Lib/SimpleXMLRPCServer.py

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

Lib/distutils/tests/test_build_ext.py

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

217217
# second element of each tuple in 'ext_modules'
218-
# must be a ary (build info)
218+
# must be a dictionary (build info)
219219
exts = [('foo.bar', '')]
220220
self.assertRaises(DistutilsSetupError, cmd.check_extensions_list, exts)
221221

Lib/idlelib/NEWS.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ What's New in IDLE 2.7.9?
185185
Changes are written to HOME/.idlerc/config-extensions.cfg.
186186
Original patch by Tal Einat.
187187

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

Lib/plat-mac/findertools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ def _seticon(object_alias, icondata):
580580

581581
def mountvolume(volume, server=None, username=None, password=None):
582582
"""mount a volume, local or on a server on AppleTalk.
583-
Note: mounting a ASIP server requires a different operation.
583+
Note: mounting an ASIP server requires a different operation.
584584
server is the name of the server where the volume belongs
585585
username, password belong to a registered user of the volume."""
586586
finder = _getfinder()

Lib/plat-mac/macresource.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def open_pathname(pathname, verbose=0):
7878
"""Open a resource file given by pathname, possibly decoding an
7979
AppleSingle file"""
8080
# No resource fork. We may be on OSX, and this may be either
81-
# a data-fork based resource file or a AppleSingle file
81+
# a data-fork based resource file or an AppleSingle file
8282
# from the CVS repository.
8383
try:
8484
refno = Res.FSOpenResourceFile(pathname, u'', 1)
@@ -97,7 +97,7 @@ def resource_pathname(pathname, verbose=0):
9797
If the pathname given already refers to such a file simply return it,
9898
otherwise first decode it."""
9999
# No resource fork. We may be on OSX, and this may be either
100-
# a data-fork based resource file or a AppleSingle file
100+
# a data-fork based resource file or an AppleSingle file
101101
# from the CVS repository.
102102
try:
103103
refno = Res.FSOpenResourceFile(pathname, u'', 1)

Lib/sqlite3/test/regression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def CheckEmptyStatement(self):
118118

119119
def CheckUnicodeConnect(self):
120120
"""
121-
With pysqlite 2.4.0 you needed to use a string or a APSW connection
121+
With pysqlite 2.4.0 you needed to use a string or an APSW connection
122122
object for opening database connections.
123123
124124
Formerly, both bytestrings and unicode strings used to work.

0 commit comments

Comments
 (0)