mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
More, better workaround for the mx.DateTime suckiness.
This commit is contained in:
parent
46ec7d815c
commit
aa426edd0c
@ -55,12 +55,14 @@ import callbacks
|
||||
import structures
|
||||
|
||||
try:
|
||||
if 'mx' in sys.modules:
|
||||
original = sys.modules['mx']
|
||||
sys.modules['mx'] = None
|
||||
mxCrap = {}
|
||||
for (name, module) in sys.modules.items():
|
||||
if name.startswith('mx'):
|
||||
mxCrap[name] = module
|
||||
sys.modules[name] = None
|
||||
import sqlite
|
||||
if 'mx' in sys.modules:
|
||||
sys.modules['mx'] = original
|
||||
for (name, module) in mxCrap.items():
|
||||
sys.modules[name] = module
|
||||
sqlite.have_datetime = False
|
||||
Connection = sqlite.Connection
|
||||
class MyConnection(sqlite.Connection):
|
||||
|
Loading…
Reference in New Issue
Block a user