]> granicus.if.org Git - python/commitdiff
English spelling and grammar fixes
authorMartin Panter <vadmium+py@gmail.com>
Mon, 11 Jul 2016 07:51:37 +0000 (07:51 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Mon, 11 Jul 2016 07:51:37 +0000 (07:51 +0000)
15 files changed:
Doc/library/aetypes.rst
Doc/library/pyexpat.rst
Doc/library/simplexmlrpcserver.rst
Doc/library/xml.dom.minidom.rst
Lib/SimpleXMLRPCServer.py
Lib/distutils/tests/test_build_ext.py
Lib/idlelib/NEWS.txt
Lib/plat-mac/findertools.py
Lib/plat-mac/macresource.py
Lib/sqlite3/test/regression.py
Lib/test/_mock_backport.py
Lib/xml/dom/expatbuilder.py
Misc/NEWS
Modules/_sqlite/connection.c
Modules/_sqlite/connection.h

index 1e1067f121829c3b1cf072979865046490ab643f..90cc4ae1410398a2203b549299d600d0fda5425d 100644 (file)
@@ -19,7 +19,7 @@ etc. For OSA types that have no direct Python counterpart this module declares
 classes. Packing and unpacking instances of these classes is handled
 automatically by :mod:`aepack`.
 
-An object specifier is essentially an address of an object implemented in a
+An object specifier is essentially an address of an object implemented in an
 Apple Event server. An Apple Event specifier is used as the direct object for an
 Apple Event or as the argument of an optional parameter. The :mod:`aetypes`
 module contains the base classes for OSA classes and properties, which are used
index b580948706170e2f9e2e7c8e717bdf33ed0758f3..bb0da9dc16ae4558672515479d84f28e37c8c3e3 100644 (file)
@@ -270,7 +270,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.
 
 
index 8f805e9307585bd4c1809287ebd2f3514094a1c1..c8aa469993e51d7a0f5f20ed32df8d676641f6db 100644 (file)
@@ -273,7 +273,7 @@ requests sent to Python CGI scripts.
 
 .. method:: CGIXMLRPCRequestHandler.handle_request([request_text = None])
 
-   Handle a XML-RPC request. If *request_text* is given, it  should be the POST
+   Handle an XML-RPC request. If *request_text* is given, it should be the POST
    data provided by the HTTP server,  otherwise the contents of stdin will be used.
 
 Example::
index b6d46fc4360f0b6d969d33832ca5a1e320e3f520..a1d7951e48e4f817defe9d0aab316eaa065b3658 100644 (file)
@@ -100,7 +100,7 @@ document: the one that holds all others.  Here is an example program::
 
 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.
index fcc3d2ea74dfacf04e6c22db898a0a70184c1ec1..5324e9213823d03f256ce32b1b66ccb9c164fa22 100644 (file)
@@ -188,7 +188,7 @@ class SimpleXMLRPCDispatcher:
         are considered private and will not be called by
         SimpleXMLRPCServer.
 
-        If a registered function matches a XML-RPC request, then it
+        If a registered function matches an XML-RPC request, then it
         will be called instead of the registered instance.
 
         If the optional allow_dotted_names argument is true and the
index 3293c4474ececedfdf6db30b638ae031112d093d..34bc71e06d8d60bf9831b6d01b373dfe66b21019 100644 (file)
@@ -215,7 +215,7 @@ class BuildExtTestCase(support.TempdirManager,
         self.assertRaises(DistutilsSetupError, cmd.check_extensions_list, exts)
 
         # second element of each tuple in 'ext_modules'
-        # must be a ary (build info)
+        # must be a dictionary (build info)
         exts = [('foo.bar', '')]
         self.assertRaises(DistutilsSetupError, cmd.check_extensions_list, exts)
 
index 3f08bb34aca02781648a1e86602c4e689b06007f..c04c24ce4c28c727f8308dbd3acd51c98d49557b 100644 (file)
@@ -185,7 +185,7 @@ What's New in IDLE 2.7.9?
   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
index d0c74a912567fc9f52647c0225bf2e5a21341e2c..c6824bc8fdd8892de41f8d896d1376538a6b0973 100644 (file)
@@ -580,7 +580,7 @@ def _seticon(object_alias, icondata):
 
 def mountvolume(volume, server=None, username=None, password=None):
     """mount a volume, local or on a server on AppleTalk.
-    Note: mounting a ASIP server requires a different operation.
+    Note: mounting an ASIP server requires a different operation.
     server is the name of the server where the volume belongs
     username, password belong to a registered user of the volume."""
     finder = _getfinder()
index 3b48d4b5336254639f26b12c9b22b0f8e0a9361b..9415e1ecf5969e88a6f2c2ac3ac66d9674e7ba00 100644 (file)
@@ -78,7 +78,7 @@ def open_pathname(pathname, verbose=0):
     """Open a resource file given by pathname, possibly decoding an
     AppleSingle file"""
     # No resource fork. We may be on OSX, and this may be either
-    # a data-fork based resource file or a AppleSingle file
+    # a data-fork based resource file or an AppleSingle file
     # from the CVS repository.
     try:
         refno = Res.FSOpenResourceFile(pathname, u'', 1)
@@ -97,7 +97,7 @@ def resource_pathname(pathname, verbose=0):
     If the pathname given already refers to such a file simply return it,
     otherwise first decode it."""
     # No resource fork. We may be on OSX, and this may be either
-    # a data-fork based resource file or a AppleSingle file
+    # a data-fork based resource file or an AppleSingle file
     # from the CVS repository.
     try:
         refno = Res.FSOpenResourceFile(pathname, u'', 1)
index 8b0a71530d08fd137fcc5a837792c93b4cabc0fc..6ac40167dee7dc8160d1dca1d224072ed08f6d91 100644 (file)
@@ -118,7 +118,7 @@ class RegressionTests(unittest.TestCase):
 
     def CheckUnicodeConnect(self):
         """
-        With pysqlite 2.4.0 you needed to use a string or a APSW connection
+        With pysqlite 2.4.0 you needed to use a string or an APSW connection
         object for opening database connections.
 
         Formerly, both bytestrings and unicode strings used to work.
index f85becb06b579f6a9a93d09390144d09e97c8716..60814520291e1970e67b1111774173ca30c0c13f 100644 (file)
@@ -740,7 +740,7 @@ class NonCallableMock(Base):
 
     def _call_matcher(self, _call):
         """
-        Given a call (or simply a (args, kwargs) tuple), return a
+        Given a call (or simply an (args, kwargs) tuple), return a
         comparison key suitable for matching with other calls.
         This is a best effort method which relies on the spec's signature,
         if available, or falls back on the arguments themselves.
index 4fba87585f35df1a40bcba2b01c9f508037cb4d5..c7033f41f449943973b0fb4e5f11af2f01582eda 100644 (file)
@@ -10,7 +10,7 @@ This avoids all the overhead of SAX and pulldom to gain performance.
 # 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:
index fbb7603dba331c332b6612d16bb40e0495e1b7b5..023f46a3cbf5af4b90af1fd0bbb3fedd07578d8e 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,7 +12,7 @@ Core and Builtins
 
 - Issue #23908: os functions, open() and the io.FileIO constructor now reject
   unicode paths with embedded null character on Windows instead of silently
-  truncate them.
+  truncating them.
 
 Library
 -------
@@ -1354,7 +1354,7 @@ Library
   Sergey Bobrov.
 
 - Issue #21147: sqlite3 now raises an exception if the request contains a null
-  character instead of truncate it.  Based on patch by Victor Stinner.
+  character instead of truncating it.  Based on patch by Victor Stinner.
 
 - Issue #21951: Fixed a crash in Tkinter on AIX when called Tcl command with
   empty string or tuple argument.
index 6b0e3c628b764b0a4b675b55aca7d5dc5a9b1471..5bfa6448d3d2fae4cd2148e7bef08ee3e0653de1 100644 (file)
@@ -116,7 +116,7 @@ int pysqlite_connection_init(pysqlite_Connection* self, PyObject* args, PyObject
             return -1;
         }
     } else {
-        /* Create a pysqlite connection from a APSW connection */
+        /* Create a pysqlite connection from an APSW connection */
         class_attr = PyObject_GetAttrString(database, "__class__");
         if (class_attr) {
             class_attr_str = PyObject_Str(class_attr);
index ecc8d2b24de8cb6bbc095842ca3edfe9808d78e2..f9a98e5a9569dc31c2cd1cd98bdeafc7238b6d4a 100644 (file)
@@ -99,7 +99,7 @@ typedef struct
     /* a dictionary of registered collation name => collation callable mappings */
     PyObject* collations;
 
-    /* if our connection was created from a APSW connection, we keep a
+    /* if our connection was created from an APSW connection, we keep a
      * reference to the APSW connection around and get rid of it in our
      * destructor */
     PyObject* apsw_connection;