Skip to content

Commit 5b9238c

Browse files
author
Erlend E. Aasland
committed
bpo-44991: Normalise sqlite3 callback suffixes
1 parent 01dea5f commit 5b9238c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Modules/_sqlite/connection.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,8 @@ static int _authorizer_callback(void* user_arg, int action, const char* arg1, co
952952
return rc;
953953
}
954954

955-
static int _progress_handler(void* user_arg)
955+
static int
956+
progress_callback(void *user_arg)
956957
{
957958
PyGILState_STATE gilstate = PyGILState_Ensure();
958959

@@ -1089,7 +1090,7 @@ pysqlite_connection_set_progress_handler_impl(pysqlite_Connection *self,
10891090
sqlite3_progress_handler(self->db, 0, 0, (void*)0);
10901091
Py_XSETREF(self->function_pinboard_progress_handler, NULL);
10911092
} else {
1092-
sqlite3_progress_handler(self->db, n, _progress_handler, progress_handler);
1093+
sqlite3_progress_handler(self->db, n, progress_callback, progress_handler);
10931094
Py_INCREF(progress_handler);
10941095
Py_XSETREF(self->function_pinboard_progress_handler, progress_handler);
10951096
}

0 commit comments

Comments
 (0)