mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
[3.10] Fix docstring typo in sqlite3.Connection.executescript/sqlite3.Cursor.executescript (GH-27147) (GH-27151)
Both `executescript` methods contain the same docstring typo: _"Executes a multiple SQL statements at once."_ => _"Executes multiple SQL statements at once."_ Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
This commit is contained in:
parent
3048b8bd2a
commit
02e4c0cad3
4 changed files with 8 additions and 8 deletions
|
|
@ -475,7 +475,7 @@ PyDoc_STRVAR(pysqlite_connection_executescript__doc__,
|
||||||
"executescript($self, sql_script, /)\n"
|
"executescript($self, sql_script, /)\n"
|
||||||
"--\n"
|
"--\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Executes a multiple SQL statements at once. Non-standard.");
|
"Executes multiple SQL statements at once. Non-standard.");
|
||||||
|
|
||||||
#define PYSQLITE_CONNECTION_EXECUTESCRIPT_METHODDEF \
|
#define PYSQLITE_CONNECTION_EXECUTESCRIPT_METHODDEF \
|
||||||
{"executescript", (PyCFunction)pysqlite_connection_executescript, METH_O, pysqlite_connection_executescript__doc__},
|
{"executescript", (PyCFunction)pysqlite_connection_executescript, METH_O, pysqlite_connection_executescript__doc__},
|
||||||
|
|
@ -710,4 +710,4 @@ exit:
|
||||||
#ifndef PYSQLITE_CONNECTION_LOAD_EXTENSION_METHODDEF
|
#ifndef PYSQLITE_CONNECTION_LOAD_EXTENSION_METHODDEF
|
||||||
#define PYSQLITE_CONNECTION_LOAD_EXTENSION_METHODDEF
|
#define PYSQLITE_CONNECTION_LOAD_EXTENSION_METHODDEF
|
||||||
#endif /* !defined(PYSQLITE_CONNECTION_LOAD_EXTENSION_METHODDEF) */
|
#endif /* !defined(PYSQLITE_CONNECTION_LOAD_EXTENSION_METHODDEF) */
|
||||||
/*[clinic end generated code: output=c1bf09db3bcd0105 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=6c40101de3ae46fc input=a9049054013a1b77]*/
|
||||||
|
|
|
||||||
|
|
@ -114,7 +114,7 @@ PyDoc_STRVAR(pysqlite_cursor_executescript__doc__,
|
||||||
"executescript($self, sql_script, /)\n"
|
"executescript($self, sql_script, /)\n"
|
||||||
"--\n"
|
"--\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Executes a multiple SQL statements at once. Non-standard.");
|
"Executes multiple SQL statements at once. Non-standard.");
|
||||||
|
|
||||||
#define PYSQLITE_CURSOR_EXECUTESCRIPT_METHODDEF \
|
#define PYSQLITE_CURSOR_EXECUTESCRIPT_METHODDEF \
|
||||||
{"executescript", (PyCFunction)pysqlite_cursor_executescript, METH_O, pysqlite_cursor_executescript__doc__},
|
{"executescript", (PyCFunction)pysqlite_cursor_executescript, METH_O, pysqlite_cursor_executescript__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=6a2d4d49784aa686 input=a9049054013a1b77]*/
|
/*[clinic end generated code: output=c319842c7e7e4c51 input=a9049054013a1b77]*/
|
||||||
|
|
|
||||||
|
|
@ -1456,13 +1456,13 @@ _sqlite3.Connection.executescript as pysqlite_connection_executescript
|
||||||
sql_script as script_obj: object
|
sql_script as script_obj: object
|
||||||
/
|
/
|
||||||
|
|
||||||
Executes a multiple SQL statements at once. Non-standard.
|
Executes multiple SQL statements at once. Non-standard.
|
||||||
[clinic start generated code]*/
|
[clinic start generated code]*/
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
pysqlite_connection_executescript(pysqlite_Connection *self,
|
pysqlite_connection_executescript(pysqlite_Connection *self,
|
||||||
PyObject *script_obj)
|
PyObject *script_obj)
|
||||||
/*[clinic end generated code: output=4c4f9d77aa0ae37d input=c0b14695aa6c81d9]*/
|
/*[clinic end generated code: output=4c4f9d77aa0ae37d input=b27ae5c24ffb8b43]*/
|
||||||
{
|
{
|
||||||
_Py_IDENTIFIER(executescript);
|
_Py_IDENTIFIER(executescript);
|
||||||
PyObject* cursor = 0;
|
PyObject* cursor = 0;
|
||||||
|
|
|
||||||
|
|
@ -685,12 +685,12 @@ _sqlite3.Cursor.executescript as pysqlite_cursor_executescript
|
||||||
sql_script as script_obj: object
|
sql_script as script_obj: object
|
||||||
/
|
/
|
||||||
|
|
||||||
Executes a multiple SQL statements at once. Non-standard.
|
Executes multiple SQL statements at once. Non-standard.
|
||||||
[clinic start generated code]*/
|
[clinic start generated code]*/
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
pysqlite_cursor_executescript(pysqlite_Cursor *self, PyObject *script_obj)
|
pysqlite_cursor_executescript(pysqlite_Cursor *self, PyObject *script_obj)
|
||||||
/*[clinic end generated code: output=115a8132b0f200fe input=38c6fa6de570bb9b]*/
|
/*[clinic end generated code: output=115a8132b0f200fe input=ba3ec59df205e362]*/
|
||||||
{
|
{
|
||||||
_Py_IDENTIFIER(commit);
|
_Py_IDENTIFIER(commit);
|
||||||
const char* script_cstr;
|
const char* script_cstr;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue