File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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, "
You can’t perform that action at this time.
0 commit comments