mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-03-03 23:55:46 +03:00
Mark psyco_set_error as returning a borrowed object
This commit is contained in:
parent
7a1fb9a2e4
commit
3768d9047d
|
@ -365,8 +365,7 @@ exit:
|
|||
* Create a new error of the given type with extra attributes.
|
||||
*/
|
||||
|
||||
/* TODO: may have been changed to BORROWED */
|
||||
RAISES PyObject *
|
||||
RAISES BORROWED PyObject *
|
||||
psyco_set_error(PyObject *exc, cursorObject *curs, const char *msg)
|
||||
{
|
||||
PyObject *pymsg;
|
||||
|
|
|
@ -53,7 +53,7 @@ HIDDEN PyObject *psycopg_make_dsn(PyObject *dsn, PyObject *kwargs);
|
|||
HIDDEN PyObject *psycopg_text_from_chars_safe(
|
||||
const char *str, Py_ssize_t len, PyObject *decoder);
|
||||
|
||||
RAISES HIDDEN PyObject *psyco_set_error(
|
||||
HIDDEN RAISES BORROWED PyObject *psyco_set_error(
|
||||
PyObject *exc, cursorObject *curs, const char *msg);
|
||||
|
||||
HIDDEN PyObject *psyco_GetDecimalType(void);
|
||||
|
|
Loading…
Reference in New Issue
Block a user