Fix typo: "the the"

This commit is contained in:
Jon Dufresne 2019-06-20 20:18:23 -07:00 committed by Daniele Varrazzo
parent ee056bc6e8
commit 491296e0f5
4 changed files with 10 additions and 10 deletions

View File

@ -639,7 +639,7 @@ The ``connection`` class
:param new_oid: Create a new object using the specified OID. The :param new_oid: Create a new object using the specified OID. The
function raises `~psycopg2.OperationalError` if the OID is already function raises `~psycopg2.OperationalError` if the OID is already
in use. Default is 0, meaning assign a new one automatically. in use. Default is 0, meaning assign a new one automatically.
:param new_file: The name of a file to be imported in the the database :param new_file: The name of a file to be imported in the database
(using the |lo_import|_ function) (using the |lo_import|_ function)
:param lobject_factory: Subclass of :param lobject_factory: Subclass of
`~psycopg2.extensions.lobject` to be instantiated. `~psycopg2.extensions.lobject` to be instantiated.

View File

@ -413,9 +413,9 @@ deal with Python objects adaptation:
.. method:: getquoted() .. method:: getquoted()
Return the string enclosed in single quotes. Any single quote Return the string enclosed in single quotes. Any single quote appearing
appearing in the the string is escaped by doubling it according to SQL in the string is escaped by doubling it according to SQL string
string constants syntax. Backslashes are escaped too. constants syntax. Backslashes are escaped too.
>>> QuotedString(r"O'Reilly").getquoted() >>> QuotedString(r"O'Reilly").getquoted()
"'O''Reilly'" "'O''Reilly'"
@ -758,8 +758,8 @@ methods. The level can be set to one of the following constants:
.. data:: ISOLATION_LEVEL_READ_COMMITTED .. data:: ISOLATION_LEVEL_READ_COMMITTED
This is usually the the default PostgreSQL value, but a different default This is usually the default PostgreSQL value, but a different default may
may be set in the database configuration. be set in the database configuration.
A new transaction is started at the first `~cursor.execute()` command on a A new transaction is started at the first `~cursor.execute()` command on a
cursor and at each new `!execute()` after a `~connection.commit()` or a cursor and at each new `!execute()` after a `~connection.commit()` or a

View File

@ -147,7 +147,7 @@ port_get(connInfoObject *self)
static const char options_doc[] = static const char options_doc[] =
"The command-line options passed in the the connection request.\n" "The command-line options passed in the connection request.\n"
"\n" "\n"
".. seealso:: libpq docs for `PQoptions()`__ for details.\n" ".. seealso:: libpq docs for `PQoptions()`__ for details.\n"
".. __: https://www.postgresql.org/docs/current/static/libpq-status.html" ".. __: https://www.postgresql.org/docs/current/static/libpq-status.html"

View File

@ -673,8 +673,8 @@ RAISES_NEG static int
basic_errors_init(PyObject *module) basic_errors_init(PyObject *module)
{ {
/* the names of the exceptions here reflect the organization of the /* the names of the exceptions here reflect the organization of the
psycopg2 module and not the fact the the original error objects psycopg2 module and not the fact the original error objects live in
live in _psycopg */ _psycopg */
int i; int i;
PyObject *dict = NULL; PyObject *dict = NULL;