Skip to content

Commit

Permalink
[3.9] sqlite3: normalise pre-acronym determiners (GH-31772) (GH-31807)
Browse files Browse the repository at this point in the history
For consistency, replace "a SQL" with "an SQL"..
(cherry picked from commit 2d5835a)

Co-authored-by: Erlend Egeberg Aasland <[email protected]>
  • Loading branch information
JelleZijlstra and Erlend Egeberg Aasland authored Mar 12, 2022
1 parent ba2b795 commit 49ff5ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions Doc/library/sqlite3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ SQLite for internal data storage. It's also possible to prototype an
application using SQLite and then port the code to a larger database such as
PostgreSQL or Oracle.

The sqlite3 module was written by Gerhard Häring. It provides a SQL interface
The sqlite3 module was written by Gerhard Häring. It provides an SQL interface
compliant with the DB-API 2.0 specification described by :pep:`249`.

To use the module, start by creating a :class:`Connection` object that
Expand Down Expand Up @@ -332,7 +332,7 @@ Connection Objects

.. class:: Connection

A SQLite database connection has the following attributes and methods:
An SQLite database connection has the following attributes and methods:

.. attribute:: isolation_level

Expand Down Expand Up @@ -534,7 +534,7 @@ Connection Objects

.. method:: load_extension(path)

This routine loads a SQLite extension from a shared library. You have to
This routine loads an SQLite extension from a shared library. You have to
enable extension loading with :meth:`enable_load_extension` before you can
use this routine.

Expand Down Expand Up @@ -605,7 +605,7 @@ Connection Objects

.. method:: backup(target, *, pages=-1, progress=None, name="main", sleep=0.250)

This method makes a backup of a SQLite database even while it's being accessed
This method makes a backup of an SQLite database even while it's being accessed
by other clients, or concurrently by the same connection. The copy will be
written into the mandatory argument *target*, that must be another
:class:`Connection` instance.
Expand Down Expand Up @@ -965,7 +965,7 @@ This is how SQLite types are converted to Python types by default:
+-------------+----------------------------------------------+

The type system of the :mod:`sqlite3` module is extensible in two ways: you can
store additional Python types in a SQLite database via object adaptation, and
store additional Python types in an SQLite database via object adaptation, and
you can let the :mod:`sqlite3` module convert SQLite types to different Python
types via converters.

Expand Down
4 changes: 2 additions & 2 deletions Modules/_sqlite/cursor.c
Original file line number Diff line number Diff line change
Expand Up @@ -878,9 +878,9 @@ PyObject* pysqlite_cursor_close(pysqlite_Cursor* self, PyObject* args)

static PyMethodDef cursor_methods[] = {
{"execute", (PyCFunction)pysqlite_cursor_execute, METH_VARARGS,
PyDoc_STR("Executes a SQL statement.")},
PyDoc_STR("Executes an SQL statement.")},
{"executemany", (PyCFunction)pysqlite_cursor_executemany, METH_VARARGS,
PyDoc_STR("Repeatedly executes a SQL statement.")},
PyDoc_STR("Repeatedly executes an SQL statement.")},
{"executescript", (PyCFunction)pysqlite_cursor_executescript, METH_VARARGS,
PyDoc_STR("Executes multiple SQL statements at once.")},
{"fetchone", (PyCFunction)pysqlite_cursor_fetchone, METH_NOARGS,
Expand Down

0 comments on commit 49ff5ed

Please sign in to comment.