diff --git a/doc/src/connection.rst b/doc/src/connection.rst index b31c2d29..76f1332c 100644 --- a/doc/src/connection.rst +++ b/doc/src/connection.rst @@ -639,7 +639,7 @@ The ``connection`` class :param new_oid: Create a new object using the specified OID. The function raises `~psycopg2.OperationalError` if the OID is already 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) :param lobject_factory: Subclass of `~psycopg2.extensions.lobject` to be instantiated. @@ -749,7 +749,7 @@ The ``connection`` class .. rubric:: informative methods of the native connection - .. note:: + .. note:: These methods are better accessed using the `~connection.info` attributes and may be dropped in future versions. diff --git a/doc/src/extensions.rst b/doc/src/extensions.rst index 22d9b5db..d8c07a42 100644 --- a/doc/src/extensions.rst +++ b/doc/src/extensions.rst @@ -413,9 +413,9 @@ deal with Python objects adaptation: .. method:: getquoted() - Return the string enclosed in single quotes. Any single quote - appearing in the the string is escaped by doubling it according to SQL - string constants syntax. Backslashes are escaped too. + Return the string enclosed in single quotes. Any single quote appearing + in the string is escaped by doubling it according to SQL string + constants syntax. Backslashes are escaped too. >>> QuotedString(r"O'Reilly").getquoted() "'O''Reilly'" @@ -758,8 +758,8 @@ methods. The level can be set to one of the following constants: .. data:: ISOLATION_LEVEL_READ_COMMITTED - This is usually the the default PostgreSQL value, but a different default - may be set in the database configuration. + This is usually the default PostgreSQL value, but a different default may + be set in the database configuration. 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 diff --git a/psycopg/conninfo_type.c b/psycopg/conninfo_type.c index 0e847bef..3f485aa2 100644 --- a/psycopg/conninfo_type.c +++ b/psycopg/conninfo_type.c @@ -147,7 +147,7 @@ port_get(connInfoObject *self) 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" ".. seealso:: libpq docs for `PQoptions()`__ for details.\n" ".. __: https://www.postgresql.org/docs/current/static/libpq-status.html" diff --git a/psycopg/psycopgmodule.c b/psycopg/psycopgmodule.c index 8ee23283..c6f09633 100644 --- a/psycopg/psycopgmodule.c +++ b/psycopg/psycopgmodule.c @@ -673,8 +673,8 @@ RAISES_NEG static int basic_errors_init(PyObject *module) { /* the names of the exceptions here reflect the organization of the - psycopg2 module and not the fact the the original error objects - live in _psycopg */ + psycopg2 module and not the fact the original error objects live in + _psycopg */ int i; PyObject *dict = NULL;