Skip to content

Commit 0c47008

Browse files
JelleZijlstraErlend Egeberg Aasland
and
Erlend Egeberg Aasland
authored
[3.9] Docstring: replace pysqlite with sqlite3 (GH-31758) (GH-31778)
Replace two instances of "pysqlite" with "sqlite3" in sqlite3 docstrings. Also reword "is a no-op" to "does nothing" for clarity.. (cherry picked from commit b33a1ae) Co-authored-by: Erlend Egeberg Aasland <[email protected]>
1 parent f3ea249 commit 0c47008

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Doc/library/sqlite3.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -744,11 +744,11 @@ Cursor Objects
744744

745745
.. method:: setinputsizes(sizes)
746746

747-
Required by the DB-API. Is a no-op in :mod:`sqlite3`.
747+
Required by the DB-API. Does nothing in :mod:`sqlite3`.
748748

749749
.. method:: setoutputsize(size [, column])
750750

751-
Required by the DB-API. Is a no-op in :mod:`sqlite3`.
751+
Required by the DB-API. Does nothing in :mod:`sqlite3`.
752752

753753
.. attribute:: rowcount
754754

Modules/_sqlite/cursor.c

Lines changed: 3 additions & 3 deletions
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.")},
885+
PyDoc_STR("Executes 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,
@@ -892,9 +892,9 @@ static PyMethodDef cursor_methods[] = {
892892
{"close", (PyCFunction)pysqlite_cursor_close, METH_NOARGS,
893893
PyDoc_STR("Closes the cursor.")},
894894
{"setinputsizes", (PyCFunction)pysqlite_noop, METH_VARARGS,
895-
PyDoc_STR("Required by DB-API. Does nothing in pysqlite.")},
895+
PyDoc_STR("Required by DB-API. Does nothing in sqlite3.")},
896896
{"setoutputsize", (PyCFunction)pysqlite_noop, METH_VARARGS,
897-
PyDoc_STR("Required by DB-API. Does nothing in pysqlite.")},
897+
PyDoc_STR("Required by DB-API. Does nothing in sqlite3.")},
898898
{NULL, NULL}
899899
};
900900

0 commit comments

Comments
 (0)