Skip to content

Commit abb7bae

Browse files
author
Erlend E. Aasland
committed
Adjust comments
1 parent 084173a commit abb7bae

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Modules/_sqlite/module.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -423,12 +423,12 @@ get_threadsafety(pysqlite_state *state)
423423
{
424424
int mode = sqlite3_threadsafe();
425425
switch (mode) {
426-
case 0: // SQLite single-thread mode; threads may not share the
427-
return 0; // module.
428-
case 1: // SQLite serialized mode; threads may share the module,
429-
return 3; // connections and cursors.
430-
case 2: // SQLite multi-thread mode; threads may share the module,
431-
return 1; // but not connections.
426+
case 0: // Single-thread mode; threads may not share the module.
427+
return 0;
428+
case 1: // Serialized mode; threads may share the module,
429+
return 3; // connections, and cursors.
430+
case 2: // Multi-thread mode; threads may share the module, but not
431+
return 1; // connections.
432432
default:
433433
PyErr_Format(state->InterfaceError,
434434
"Unable to interpret SQLite threadsafety mode. Got %d, "

0 commit comments

Comments
 (0)