summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-01-13 14:17:24 (GMT)
committerBenjamin Peterson <benjamin@python.org>2015-01-13 14:17:24 (GMT)
commit82f34ada45f96c13eb68927d6beccdcbab2c77b3 (patch)
tree136839c19a7d640d61b84b04129a76e0063b87ba /Doc
parent38dc250521d2c34f58537b25301a0ac9a4bb6c85 (diff)
downloadcpython-82f34ada45f96c13eb68927d6beccdcbab2c77b3.zip
cpython-82f34ada45f96c13eb68927d6beccdcbab2c77b3.tar.gz
cpython-82f34ada45f96c13eb68927d6beccdcbab2c77b3.tar.bz2
fix instances of consecutive articles (closes #23221)
Patch by Karan Goel.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/exceptions.rst2
-rw-r--r--Doc/c-api/init.rst2
-rw-r--r--Doc/c-api/structures.rst2
-rw-r--r--Doc/distutils/apiref.rst2
-rw-r--r--Doc/library/unittest.mock.rst2
5 files changed, 5 insertions, 5 deletions
diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst
index 8ad742a..66b7752 100644
--- a/Doc/c-api/exceptions.rst
+++ b/Doc/c-api/exceptions.rst
@@ -64,7 +64,7 @@ in various ways. There 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)
diff --git a/Doc/c-api/init.rst b/Doc/c-api/init.rst
index eb542de..4d358ca 100644
--- a/Doc/c-api/init.rst
+++ b/Doc/c-api/init.rst
@@ -1182,7 +1182,7 @@ These functions are only intended to be used by advanced debugging tools.
.. c:function:: PyThreadState * PyInterpreterState_ThreadHead(PyInterpreterState *interp)
- Return the a 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*.
diff --git a/Doc/c-api/structures.rst b/Doc/c-api/structures.rst
index bb741fb..66a3443 100644
--- a/Doc/c-api/structures.rst
+++ b/Doc/c-api/structures.rst
@@ -131,7 +131,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 a 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.
diff --git a/Doc/distutils/apiref.rst b/Doc/distutils/apiref.rst
index fff0641..82bed24 100644
--- a/Doc/distutils/apiref.rst
+++ b/Doc/distutils/apiref.rst
@@ -964,7 +964,7 @@ directories.
.. function:: create_tree(base_dir, files[, mode=0o777, verbose=0, dry_run=0])
Create all the empty directories under *base_dir* needed to put *files* there.
- *base_dir* is just the a 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
diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst
index b242438..845e0c4 100644
--- a/Doc/library/unittest.mock.rst
+++ b/Doc/library/unittest.mock.rst
@@ -1499,7 +1499,7 @@ where we have imported it. The patching should look like::
However, consider the alternative scenario where instead of ``from a import
SomeClass`` module b does ``import a`` and ``some_function`` uses ``a.SomeClass``. Both
of these import forms are common. In this case the class we want to patch is
-being looked up on the a module and so we have to patch ``a.SomeClass`` instead::
+being looked up in the module and so we have to patch ``a.SomeClass`` instead::
@patch('a.SomeClass')