aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/python/pgdb.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/python/pgdb.py')
-rw-r--r--src/interfaces/python/pgdb.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/interfaces/python/pgdb.py b/src/interfaces/python/pgdb.py
index 156350abb24..f52e9641145 100644
--- a/src/interfaces/python/pgdb.py
+++ b/src/interfaces/python/pgdb.py
@@ -58,10 +58,13 @@ import _pg
import string
import exceptions
import types
-import DateTime
import time
import types
+# Marc-Andre is changing where DateTime goes. This handles it either way.
+try: from mx import DateTime
+except ImportError: import DateTime
+
### module constants
# compliant with DB SIG 2.0