[3.10] sqlite3: normalise pre-acronym determiners (GH-31772) (GH-31806)

For consistency, replace "a SQL" with "an SQL"..
(cherry picked from commit 2d5835a019)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
This commit is contained in:
Jelle Zijlstra 2022-03-11 17:10:55 -08:00 committed by GitHub
parent 28f20a6613
commit d8ba5c102c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 12 deletions

View file

@ -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 application using SQLite and then port the code to a larger database such as
PostgreSQL or Oracle. 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`, and compliant with the DB-API 2.0 specification described by :pep:`249`, and
requires SQLite 3.7.15 or newer. requires SQLite 3.7.15 or newer.
@ -337,7 +337,7 @@ Connection Objects
.. class:: Connection .. 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 .. attribute:: isolation_level
@ -544,7 +544,7 @@ Connection Objects
.. method:: load_extension(path) .. 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 enable extension loading with :meth:`enable_load_extension` before you can
use this routine. use this routine.
@ -620,7 +620,7 @@ Connection Objects
.. method:: backup(target, *, pages=-1, progress=None, name="main", sleep=0.250) .. 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 by other clients, or concurrently by the same connection. The copy will be
written into the mandatory argument *target*, that must be another written into the mandatory argument *target*, that must be another
:class:`Connection` instance. :class:`Connection` instance.
@ -975,7 +975,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 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 you can let the :mod:`sqlite3` module convert SQLite types to different Python
types via converters. types via converters.

View file

@ -34,7 +34,7 @@ PyDoc_STRVAR(pysqlite_cursor_execute__doc__,
"execute($self, sql, parameters=(), /)\n" "execute($self, sql, parameters=(), /)\n"
"--\n" "--\n"
"\n" "\n"
"Executes a SQL statement."); "Executes an SQL statement.");
#define PYSQLITE_CURSOR_EXECUTE_METHODDEF \ #define PYSQLITE_CURSOR_EXECUTE_METHODDEF \
{"execute", (PyCFunction)(void(*)(void))pysqlite_cursor_execute, METH_FASTCALL, pysqlite_cursor_execute__doc__}, {"execute", (PyCFunction)(void(*)(void))pysqlite_cursor_execute, METH_FASTCALL, pysqlite_cursor_execute__doc__},
@ -76,7 +76,7 @@ PyDoc_STRVAR(pysqlite_cursor_executemany__doc__,
"executemany($self, sql, seq_of_parameters, /)\n" "executemany($self, sql, seq_of_parameters, /)\n"
"--\n" "--\n"
"\n" "\n"
"Repeatedly executes a SQL statement."); "Repeatedly executes an SQL statement.");
#define PYSQLITE_CURSOR_EXECUTEMANY_METHODDEF \ #define PYSQLITE_CURSOR_EXECUTEMANY_METHODDEF \
{"executemany", (PyCFunction)(void(*)(void))pysqlite_cursor_executemany, METH_FASTCALL, pysqlite_cursor_executemany__doc__}, {"executemany", (PyCFunction)(void(*)(void))pysqlite_cursor_executemany, METH_FASTCALL, pysqlite_cursor_executemany__doc__},
@ -259,4 +259,4 @@ pysqlite_cursor_close(pysqlite_Cursor *self, PyObject *Py_UNUSED(ignored))
{ {
return pysqlite_cursor_close_impl(self); return pysqlite_cursor_close_impl(self);
} }
/*[clinic end generated code: output=98aa7b44c6834d0c input=a9049054013a1b77]*/ /*[clinic end generated code: output=9879e3a5d4ee3847 input=a9049054013a1b77]*/

View file

@ -650,13 +650,13 @@ _sqlite3.Cursor.execute as pysqlite_cursor_execute
parameters: object(c_default = 'NULL') = () parameters: object(c_default = 'NULL') = ()
/ /
Executes a SQL statement. Executes an SQL statement.
[clinic start generated code]*/ [clinic start generated code]*/
static PyObject * static PyObject *
pysqlite_cursor_execute_impl(pysqlite_Cursor *self, PyObject *sql, pysqlite_cursor_execute_impl(pysqlite_Cursor *self, PyObject *sql,
PyObject *parameters) PyObject *parameters)
/*[clinic end generated code: output=d81b4655c7c0bbad input=91d7bb36f127f597]*/ /*[clinic end generated code: output=d81b4655c7c0bbad input=a8e0200a11627f94]*/
{ {
return _pysqlite_query_execute(self, 0, sql, parameters); return _pysqlite_query_execute(self, 0, sql, parameters);
} }
@ -668,13 +668,13 @@ _sqlite3.Cursor.executemany as pysqlite_cursor_executemany
seq_of_parameters: object seq_of_parameters: object
/ /
Repeatedly executes a SQL statement. Repeatedly executes an SQL statement.
[clinic start generated code]*/ [clinic start generated code]*/
static PyObject * static PyObject *
pysqlite_cursor_executemany_impl(pysqlite_Cursor *self, PyObject *sql, pysqlite_cursor_executemany_impl(pysqlite_Cursor *self, PyObject *sql,
PyObject *seq_of_parameters) PyObject *seq_of_parameters)
/*[clinic end generated code: output=2c65a3c4733fb5d8 input=440707b7af87fba8]*/ /*[clinic end generated code: output=2c65a3c4733fb5d8 input=0d0a52e5eb7ccd35]*/
{ {
return _pysqlite_query_execute(self, 1, sql, seq_of_parameters); return _pysqlite_query_execute(self, 1, sql, seq_of_parameters);
} }