Skip to content

Commit

Permalink
Docstring: replace pysqlite with sqlite3 (GH-31758)
Browse files Browse the repository at this point in the history
Replace two instances of "pysqlite" with "sqlite3" in sqlite3
docstrings. Also reword "is a no-op" to "does nothing" for clarity.
  • Loading branch information
Erlend Egeberg Aasland committed Mar 9, 2022
1 parent 95ba723 commit b33a1ae
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Doc/library/sqlite3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -836,11 +836,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

Expand Down
6 changes: 3 additions & 3 deletions Modules/_sqlite/clinic/cursor.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Modules/_sqlite/cursor.c
Original file line number Diff line number Diff line change
Expand Up @@ -921,12 +921,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;
}
Expand All @@ -938,13 +938,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;
}
Expand Down

0 comments on commit b33a1ae

Please sign in to comment.