More, better workaround for the mx.DateTime suckiness.

This commit is contained in:
Jeremy Fincher 2004-01-22 00:45:37 +00:00
parent 46ec7d815c
commit aa426edd0c

View File

@ -55,12 +55,14 @@ import callbacks
import structures import structures
try: try:
if 'mx' in sys.modules: mxCrap = {}
original = sys.modules['mx'] for (name, module) in sys.modules.items():
sys.modules['mx'] = None if name.startswith('mx'):
mxCrap[name] = module
sys.modules[name] = None
import sqlite import sqlite
if 'mx' in sys.modules: for (name, module) in mxCrap.items():
sys.modules['mx'] = original sys.modules[name] = module
sqlite.have_datetime = False sqlite.have_datetime = False
Connection = sqlite.Connection Connection = sqlite.Connection
class MyConnection(sqlite.Connection): class MyConnection(sqlite.Connection):