Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 505624e

Browse files
author
Erlend Egeberg Aasland
authored
bpo-44327: Remove unused members from pysqlite_Connection (GH-26565)
* Remove timeout_started * Remove timeout member
1 parent 18e9edb commit 505624e

2 files changed

Lines changed: 0 additions & 8 deletions

File tree

Modules/_sqlite/connection.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ pysqlite_connection_init(pysqlite_Connection *self, PyObject *args,
172172
}
173173

174174
self->detect_types = detect_types;
175-
self->timeout = timeout;
176175
(void)sqlite3_busy_timeout(self->db, (int)(timeout*1000));
177176
self->thread_ident = PyThread_get_thread_ident();
178177
self->check_same_thread = check_same_thread;

Modules/_sqlite/connection.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,6 @@ typedef struct
4141
* bitwise combination thereof makes sense */
4242
int detect_types;
4343

44-
/* the timeout value in seconds for database locks */
45-
double timeout;
46-
47-
/* for internal use in the timeout handler: when did the timeout handler
48-
* first get called with count=0? */
49-
double timeout_started;
50-
5144
/* None for autocommit, otherwise a PyUnicode with the isolation level */
5245
PyObject* isolation_level;
5346

0 commit comments

Comments
 (0)