Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix sqlite3.enable_callback_tracebacks() docstring
  • Loading branch information
Erlend E. Aasland committed Feb 9, 2021
commit 2309e614965ae9d2ef84d3c26e3212d6bae0c9e7
4 changes: 2 additions & 2 deletions Modules/_sqlite/clinic/module.c.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ pysqlite_register_converter(PyObject *module, PyObject *const *args, Py_ssize_t
}

PyDoc_STRVAR(pysqlite_enable_callback_trace__doc__,
"enable_callback_tracebacks($module, enable, /)\n"
"enable_callback_tracebacks($module, flag, /)\n"
"--\n"
"\n"
"Enable or disable callback functions throwing errors to stderr.");
Expand Down Expand Up @@ -219,4 +219,4 @@ pysqlite_adapt(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
exit:
return return_value;
}
/*[clinic end generated code: output=450c444476ad31e5 input=a9049054013a1b77]*/
/*[clinic end generated code: output=622f545d589fa736 input=a9049054013a1b77]*/
4 changes: 2 additions & 2 deletions Modules/_sqlite/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,15 +222,15 @@ pysqlite_register_converter_impl(PyObject *module, PyObject *orig_name,
/*[clinic input]
_sqlite3.enable_callback_tracebacks as pysqlite_enable_callback_trace

enable: int
flag as enable: int
/

Enable or disable callback functions throwing errors to stderr.
[clinic start generated code]*/

static PyObject *
pysqlite_enable_callback_trace_impl(PyObject *module, int enable)
/*[clinic end generated code: output=4ff1d051c698f194 input=cb79d3581eb77c40]*/
/*[clinic end generated code: output=4ff1d051c698f194 input=50b5bf5224c327e9]*/
{
_pysqlite_enable_callback_tracebacks = enable;

Expand Down