From 0e1b6923f76833a8dfde95df37a5a95e25788707 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 21 Jan 2004 10:57:55 +0000 Subject: [PATCH] Workaround for sqlite stupidity. --- src/plugins.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins.py b/src/plugins.py index 9e4c38aad..0b155277c 100644 --- a/src/plugins.py +++ b/src/plugins.py @@ -55,7 +55,12 @@ import callbacks import structures try: + if 'mx' in sys.modules: + original = sys.modules['mx'] + sys.modules['mx'] = None import sqlite + if 'mx' in sys.modules: + sys.modules['mx'] = original sqlite.have_datetime = False Connection = sqlite.Connection class MyConnection(sqlite.Connection):