We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4706e17 commit d45e27aCopy full SHA for d45e27a
Lib/sqlite3/dbapi2.py
@@ -42,9 +42,9 @@ def fetch_compile_options():
42
del fetch_compile_options
43
44
def _threadsafety():
45
- if "THREADSAFE=0" in _compile_options: # SQLite single-thread mode
46
- # Translates to DB-API threadsafety level 0, meaning threads may not
47
- # share the module.
+ if "THREADSAFE=0" in _compile_options:
+ # SQLITE_THREADSAFE=0 (single-thread mode) translates to DB-API
+ # threadsafety level 0, meaning threads may not share the module.
48
return 0
49
elif "THREADSAFE=2" in _compile_options:
50
# SQLITE_THREADSAFE=2 (multi-thread mode) translates to DB-API
0 commit comments