mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
[3.10] Docstring: replace pysqlite with sqlite3 (GH-31758) (GH-31777)
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 b33a1ae703)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
This commit is contained in:
parent
26fa25a9a7
commit
5dfe981791
3 changed files with 9 additions and 9 deletions
|
|
@ -757,11 +757,11 @@ Cursor Objects
|
|||
|
||||
.. method:: setinputsizes(sizes)
|
||||
|
||||
Required by the DB-API. Is a no-op in :mod:`sqlite3`.
|
||||
Required by the DB-API. Does nothing in :mod:`sqlite3`.
|
||||
|
||||
.. method:: setoutputsize(size [, column])
|
||||
|
||||
Required by the DB-API. Is a no-op in :mod:`sqlite3`.
|
||||
Required by the DB-API. Does nothing in :mod:`sqlite3`.
|
||||
|
||||
.. attribute:: rowcount
|
||||
|
||||
|
|
|
|||
6
Modules/_sqlite/clinic/cursor.c.h
generated
6
Modules/_sqlite/clinic/cursor.c.h
generated
|
|
@ -202,7 +202,7 @@ PyDoc_STRVAR(pysqlite_cursor_setinputsizes__doc__,
|
|||
"setinputsizes($self, sizes, /)\n"
|
||||
"--\n"
|
||||
"\n"
|
||||
"Required by DB-API. Does nothing in pysqlite.");
|
||||
"Required by DB-API. Does nothing in sqlite3.");
|
||||
|
||||
#define PYSQLITE_CURSOR_SETINPUTSIZES_METHODDEF \
|
||||
{"setinputsizes", (PyCFunction)pysqlite_cursor_setinputsizes, METH_O, pysqlite_cursor_setinputsizes__doc__},
|
||||
|
|
@ -211,7 +211,7 @@ PyDoc_STRVAR(pysqlite_cursor_setoutputsize__doc__,
|
|||
"setoutputsize($self, size, column=None, /)\n"
|
||||
"--\n"
|
||||
"\n"
|
||||
"Required by DB-API. Does nothing in pysqlite.");
|
||||
"Required by DB-API. Does nothing in sqlite3.");
|
||||
|
||||
#define PYSQLITE_CURSOR_SETOUTPUTSIZE_METHODDEF \
|
||||
{"setoutputsize", (PyCFunction)(void(*)(void))pysqlite_cursor_setoutputsize, METH_FASTCALL, pysqlite_cursor_setoutputsize__doc__},
|
||||
|
|
@ -259,4 +259,4 @@ pysqlite_cursor_close(pysqlite_Cursor *self, PyObject *Py_UNUSED(ignored))
|
|||
{
|
||||
return pysqlite_cursor_close_impl(self);
|
||||
}
|
||||
/*[clinic end generated code: output=cdd7e7a541ceb4d2 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=98aa7b44c6834d0c input=a9049054013a1b77]*/
|
||||
|
|
|
|||
|
|
@ -935,12 +935,12 @@ _sqlite3.Cursor.setinputsizes as pysqlite_cursor_setinputsizes
|
|||
sizes: object
|
||||
/
|
||||
|
||||
Required by DB-API. Does nothing in pysqlite.
|
||||
Required by DB-API. Does nothing in sqlite3.
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
pysqlite_cursor_setinputsizes(pysqlite_Cursor *self, PyObject *sizes)
|
||||
/*[clinic end generated code: output=893c817afe9d08ad input=7cffbb168663bc69]*/
|
||||
/*[clinic end generated code: output=893c817afe9d08ad input=de7950a3aec79bdf]*/
|
||||
{
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
|
@ -952,13 +952,13 @@ _sqlite3.Cursor.setoutputsize as pysqlite_cursor_setoutputsize
|
|||
column: object = None
|
||||
/
|
||||
|
||||
Required by DB-API. Does nothing in pysqlite.
|
||||
Required by DB-API. Does nothing in sqlite3.
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
pysqlite_cursor_setoutputsize_impl(pysqlite_Cursor *self, PyObject *size,
|
||||
PyObject *column)
|
||||
/*[clinic end generated code: output=018d7e9129d45efe input=077b017da58b9389]*/
|
||||
/*[clinic end generated code: output=018d7e9129d45efe input=607a6bece8bbb273]*/
|
||||
{
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue