Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 653ca6c

Browse files
author
Erlend Egeberg Aasland
authored
[3.9] bpo-46878: Purge 'non-standard' from sqlite3 docstrings (GH-31612) (GH-31754)
(cherry picked from commit 4d95fa1)
1 parent 0663ca1 commit 653ca6c

File tree

4 files changed

+22
-23
lines changed

4 files changed

+22
-23
lines changed

Modules/_sqlite/connection.c

+16-16
Original file line numberDiff line numberDiff line change
@@ -1837,41 +1837,41 @@ static PyMethodDef connection_methods[] = {
18371837
{"rollback", (PyCFunction)pysqlite_connection_rollback, METH_NOARGS,
18381838
PyDoc_STR("Roll back the current transaction.")},
18391839
{"create_function", (PyCFunction)(void(*)(void))pysqlite_connection_create_function, METH_VARARGS|METH_KEYWORDS,
1840-
PyDoc_STR("Creates a new function. Non-standard.")},
1840+
PyDoc_STR("Creates a new function.")},
18411841
{"create_aggregate", (PyCFunction)(void(*)(void))pysqlite_connection_create_aggregate, METH_VARARGS|METH_KEYWORDS,
1842-
PyDoc_STR("Creates a new aggregate. Non-standard.")},
1842+
PyDoc_STR("Creates a new aggregate.")},
18431843
{"set_authorizer", (PyCFunction)(void(*)(void))pysqlite_connection_set_authorizer, METH_VARARGS|METH_KEYWORDS,
1844-
PyDoc_STR("Sets authorizer callback. Non-standard.")},
1844+
PyDoc_STR("Sets authorizer callback.")},
18451845
#ifdef HAVE_LOAD_EXTENSION
18461846
{"enable_load_extension", (PyCFunction)pysqlite_enable_load_extension, METH_VARARGS,
1847-
PyDoc_STR("Enable dynamic loading of SQLite extension modules. Non-standard.")},
1847+
PyDoc_STR("Enable dynamic loading of SQLite extension modules.")},
18481848
{"load_extension", (PyCFunction)pysqlite_load_extension, METH_VARARGS,
1849-
PyDoc_STR("Load SQLite extension module. Non-standard.")},
1849+
PyDoc_STR("Load SQLite extension module.")},
18501850
#endif
18511851
{"set_progress_handler", (PyCFunction)(void(*)(void))pysqlite_connection_set_progress_handler, METH_VARARGS|METH_KEYWORDS,
1852-
PyDoc_STR("Sets progress handler callback. Non-standard.")},
1852+
PyDoc_STR("Sets progress handler callback.")},
18531853
{"set_trace_callback", (PyCFunction)(void(*)(void))pysqlite_connection_set_trace_callback, METH_VARARGS|METH_KEYWORDS,
1854-
PyDoc_STR("Sets a trace callback called for each SQL statement (passed as unicode). Non-standard.")},
1854+
PyDoc_STR("Sets a trace callback called for each SQL statement (passed as unicode).")},
18551855
{"execute", (PyCFunction)pysqlite_connection_execute, METH_VARARGS,
1856-
PyDoc_STR("Executes a SQL statement. Non-standard.")},
1856+
PyDoc_STR("Executes an SQL statement.")},
18571857
{"executemany", (PyCFunction)pysqlite_connection_executemany, METH_VARARGS,
1858-
PyDoc_STR("Repeatedly executes a SQL statement. Non-standard.")},
1858+
PyDoc_STR("Repeatedly executes an SQL statement.")},
18591859
{"executescript", (PyCFunction)pysqlite_connection_executescript, METH_VARARGS,
1860-
PyDoc_STR("Executes a multiple SQL statements at once. Non-standard.")},
1860+
PyDoc_STR("Executes a multiple SQL statements at once.")},
18611861
{"create_collation", (PyCFunction)pysqlite_connection_create_collation, METH_VARARGS,
1862-
PyDoc_STR("Creates a collation function. Non-standard.")},
1862+
PyDoc_STR("Creates a collation function.")},
18631863
{"interrupt", (PyCFunction)pysqlite_connection_interrupt, METH_NOARGS,
1864-
PyDoc_STR("Abort any pending database operation. Non-standard.")},
1864+
PyDoc_STR("Abort any pending database operation.")},
18651865
{"iterdump", (PyCFunction)pysqlite_connection_iterdump, METH_NOARGS,
1866-
PyDoc_STR("Returns iterator to the dump of the database in an SQL text format. Non-standard.")},
1866+
PyDoc_STR("Returns iterator to the dump of the database in an SQL text format.")},
18671867
#ifdef HAVE_BACKUP_API
18681868
{"backup", (PyCFunction)(void(*)(void))pysqlite_connection_backup, METH_VARARGS | METH_KEYWORDS,
1869-
PyDoc_STR("Makes a backup of the database. Non-standard.")},
1869+
PyDoc_STR("Makes a backup of the database.")},
18701870
#endif
18711871
{"__enter__", (PyCFunction)pysqlite_connection_enter, METH_NOARGS,
1872-
PyDoc_STR("For context manager. Non-standard.")},
1872+
PyDoc_STR("For context manager.")},
18731873
{"__exit__", (PyCFunction)pysqlite_connection_exit, METH_VARARGS,
1874-
PyDoc_STR("For context manager. Non-standard.")},
1874+
PyDoc_STR("For context manager.")},
18751875
{NULL, NULL}
18761876
};
18771877

Modules/_sqlite/cursor.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ static PyMethodDef cursor_methods[] = {
882882
{"executemany", (PyCFunction)pysqlite_cursor_executemany, METH_VARARGS,
883883
PyDoc_STR("Repeatedly executes a SQL statement.")},
884884
{"executescript", (PyCFunction)pysqlite_cursor_executescript, METH_VARARGS,
885-
PyDoc_STR("Executes a multiple SQL statements at once. Non-standard.")},
885+
PyDoc_STR("Executes a multiple SQL statements at once.")},
886886
{"fetchone", (PyCFunction)pysqlite_cursor_fetchone, METH_NOARGS,
887887
PyDoc_STR("Fetches one row from the resultset.")},
888888
{"fetchmany", (PyCFunction)(void(*)(void))pysqlite_cursor_fetchmany, METH_VARARGS|METH_KEYWORDS,

Modules/_sqlite/microprotocols.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ extern PyObject *pysqlite_microprotocols_adapt(
4747
extern PyObject *
4848
pysqlite_adapt(pysqlite_Cursor* self, PyObject *args);
4949
#define pysqlite_adapt_doc \
50-
"adapt(obj, protocol, alternate) -> adapt obj to given protocol. Non-standard."
50+
"adapt(obj, protocol, alternate) -> adapt obj to given protocol."
5151

5252
#endif /* !defined(PSYCOPG_MICROPROTOCOLS_H) */

Modules/_sqlite/module.c

+4-5
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ static PyObject* module_complete(PyObject* self, PyObject* args, PyObject*
121121
PyDoc_STRVAR(module_complete_doc,
122122
"complete_statement(sql)\n\
123123
\n\
124-
Checks if a string contains a complete SQL statement. Non-standard.");
124+
Checks if a string contains a complete SQL statement.");
125125

126126
#ifdef HAVE_SHARED_CACHE
127127
static PyObject* module_enable_shared_cache(PyObject* self, PyObject* args, PyObject*
@@ -149,8 +149,7 @@ static PyObject* module_enable_shared_cache(PyObject* self, PyObject* args, PyOb
149149
PyDoc_STRVAR(module_enable_shared_cache_doc,
150150
"enable_shared_cache(do_enable)\n\
151151
\n\
152-
Enable or disable shared cache mode for the calling thread.\n\
153-
Experimental/Non-standard.");
152+
Enable or disable shared cache mode for the calling thread.");
154153
#endif /* HAVE_SHARED_CACHE */
155154

156155
static PyObject* module_register_adapter(PyObject* self, PyObject* args)
@@ -180,7 +179,7 @@ static PyObject* module_register_adapter(PyObject* self, PyObject* args)
180179
PyDoc_STRVAR(module_register_adapter_doc,
181180
"register_adapter(type, callable)\n\
182181
\n\
183-
Registers an adapter with pysqlite's adapter registry. Non-standard.");
182+
Registers an adapter with sqlite3's adapter registry.");
184183

185184
static PyObject* module_register_converter(PyObject* self, PyObject* args)
186185
{
@@ -214,7 +213,7 @@ static PyObject* module_register_converter(PyObject* self, PyObject* args)
214213
PyDoc_STRVAR(module_register_converter_doc,
215214
"register_converter(typename, callable)\n\
216215
\n\
217-
Registers a converter with pysqlite. Non-standard.");
216+
Registers a converter with sqlite3.");
218217

219218
static PyObject* enable_callback_tracebacks(PyObject* self, PyObject* args)
220219
{

0 commit comments

Comments
 (0)