]> granicus.if.org Git - python/commitdiff
fix instances of consecutive articles (closes #23221)
authorBenjamin Peterson <benjamin@python.org>
Tue, 13 Jan 2015 14:17:24 +0000 (09:17 -0500)
committerBenjamin Peterson <benjamin@python.org>
Tue, 13 Jan 2015 14:17:24 +0000 (09:17 -0500)
Patch by Karan Goel.

Doc/c-api/exceptions.rst
Doc/c-api/init.rst
Doc/c-api/structures.rst
Doc/distutils/apiref.rst
Lib/_LWPCookieJar.py
Lib/distutils/dir_util.py
Lib/lib2to3/fixes/fix_exitfunc.py
Lib/test/test_argparse.py
Misc/ACKS
Modules/_ctypes/_ctypes.c

index 91964d05737ab65f51eb0cb69c1f9b3c3ba2badc..6f8f243423d770d72770beb3da99a36de01935af 100644 (file)
@@ -70,7 +70,7 @@ is a separate error indicator for each thread.
       Do not compare the return value to a specific exception; use
       :c:func:`PyErr_ExceptionMatches` instead, shown below.  (The comparison could
       easily fail since the exception may be an instance instead of a class, in the
-      case of a class exception, or it may the a subclass of the expected exception.)
+      case of a class exception, or it may be a subclass of the expected exception.)
 
 
 .. c:function:: int PyErr_ExceptionMatches(PyObject *exc)
index 46fc93f481ce692a3fc58529d824f48824332d1e..0c1c7141c2a3e9685d1b8b21c3cb9cafd1f67b8c 100644 (file)
@@ -1136,7 +1136,7 @@ These functions are only intended to be used by advanced debugging tools.
 
 .. c:function:: PyThreadState * PyInterpreterState_ThreadHead(PyInterpreterState *interp)
 
-   Return the pointer to the first :c:type:`PyThreadState` object in the list of
+   Return the pointer to the first :c:type:`PyThreadState` object in the list of
    threads associated with the interpreter *interp*.
 
    .. versionadded:: 2.2
index e31687f554d1b8884d141102b7d6b5c32ee2c28c..c19351072e1ee85902288f12e6ca9ecefed4c366 100644 (file)
@@ -122,7 +122,7 @@ The :attr:`ml_meth` is a C function pointer.  The functions may be of different
 types, but they always return :c:type:`PyObject\*`.  If the function is not of
 the :c:type:`PyCFunction`, the compiler will require a cast in the method table.
 Even though :c:type:`PyCFunction` defines the first parameter as
-:c:type:`PyObject\*`, it is common that the method implementation uses the
+:c:type:`PyObject\*`, it is common that the method implementation uses the
 specific C type of the *self* object.
 
 The :attr:`ml_flags` field is a bitfield which can include the following flags.
index 2a75a4627db8f10c5580209d0e4edf27bdb17da3..8366d8a2c6d942d3d566e7a690e66c97ff55a0bd 100644 (file)
@@ -970,7 +970,7 @@ directories.
 .. function:: create_tree(base_dir, files[, mode=0777, verbose=0, dry_run=0])
 
    Create all the empty directories under *base_dir* needed to put *files* there.
-   *base_dir* is just the name of a directory which doesn't necessarily exist
+   *base_dir* is just the name of a directory which doesn't necessarily exist
    yet; *files* is a list of filenames to be interpreted relative to *base_dir*.
    *base_dir* + the directory portion of every file in *files* will be created if
    it doesn't already exist.  *mode*, *verbose* and *dry_run* flags  are as for
index 90cc633d53164d02a3bb1fbbb059cf8c9004732a..a446aebe11af0513daab84aa4f8711f1620e6573 100644 (file)
@@ -18,7 +18,7 @@ from cookielib import (_warn_unhandled_exception, FileCookieJar, LoadError,
                        iso2time, time2isoz)
 
 def lwp_cookie_str(cookie):
-    """Return string representation of Cookie in an the LWP cookie file format.
+    """Return string representation of Cookie in the LWP cookie file format.
 
     Actually, the format is extended a bit -- see module docstring.
 
index e2dc6f482650de20d5a9a1fba00babd4dab47f83..f90318e4062dedae3ccde121e065af93aa53bf05 100644 (file)
@@ -83,7 +83,7 @@ def create_tree(base_dir, files, mode=0777, verbose=1, dry_run=0):
     """Create all the empty directories under 'base_dir' needed to put 'files'
     there.
 
-    'base_dir' is just the name of a directory which doesn't necessarily
+    'base_dir' is just the name of a directory which doesn't necessarily
     exist yet; 'files' is a list of filenames to be interpreted relative to
     'base_dir'.  'base_dir' + the directory portion of every file in 'files'
     will be created if it doesn't already exist.  'mode', 'verbose' and
index 89fb3db53367a97fd5614a04571cbcbd57ff3c5a..3f3fbbf1ced4ea16069881509731013870501e6d 100644 (file)
@@ -35,7 +35,7 @@ class FixExitfunc(fixer_base.BaseFix):
         self.sys_import = None
 
     def transform(self, node, results):
-        # First, find the sys import. We'll just hope it's global scope.
+        # First, find the sys import. We'll just hope it's global scope.
         if "sys_import" in results:
             if self.sys_import is None:
                 self.sys_import = results["sys_import"]
index b74b622117b0ced764c88536c56e7b8ffb9c9ac4..915e989ddbec0425a746b35b8560dbb206ac7c25 100644 (file)
@@ -646,7 +646,7 @@ class TestOptionalsChoices(ParserTestCase):
 
 
 class TestOptionalsRequired(ParserTestCase):
-    """Tests the an optional action that is required"""
+    """Tests an optional action that is required"""
 
     argument_signatures = [
         Sig('-x', type=int, required=True),
index 5372ee7e5b27394d99a80be923b2d8216ed9637a..20ff71c6ca5c9604b1e3008701069e99faee1a54 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -475,6 +475,7 @@ Yannick Gingras
 Matt Giuca
 Wim Glenn
 Michael Goderbauer
+Karan Goel
 Jeroen Van Goey
 Christoph Gohlke
 Tim Golden
index 1700afd262d0410469ff2501a173716a34ed5aa0..39e1ce45022d743a70aa360b846ad62ed5bbef02 100644 (file)
@@ -5060,7 +5060,7 @@ Pointer_set_contents(CDataObject *self, PyObject *value, void *closure)
     *(void **)self->b_ptr = dst->b_ptr;
 
     /*
-       A Pointer instance must keep the value it points to alive.  So, a
+       A Pointer instance must keep the value it points to alive.  So, a
        pointer instance has b_length set to 2 instead of 1, and we set
        'value' itself as the second item of the b_objects list, additionally.
     */