mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-18 08:02:49 +01:00
Workaround for sqlite stupidity.
This commit is contained in:
parent
2963fd352d
commit
0e1b6923f7
@ -55,7 +55,12 @@ import callbacks
|
|||||||
import structures
|
import structures
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
if 'mx' in sys.modules:
|
||||||
|
original = sys.modules['mx']
|
||||||
|
sys.modules['mx'] = None
|
||||||
import sqlite
|
import sqlite
|
||||||
|
if 'mx' in sys.modules:
|
||||||
|
sys.modules['mx'] = original
|
||||||
sqlite.have_datetime = False
|
sqlite.have_datetime = False
|
||||||
Connection = sqlite.Connection
|
Connection = sqlite.Connection
|
||||||
class MyConnection(sqlite.Connection):
|
class MyConnection(sqlite.Connection):
|
||||||
|
Loading…
Reference in New Issue
Block a user