aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/python/pgdb.py
diff options
context:
space:
mode:
authorD'Arcy J.M. Cain <darcy@druid.net>2001-03-30 12:08:24 +0000
committerD'Arcy J.M. Cain <darcy@druid.net>2001-03-30 12:08:24 +0000
commit92f3253926be26dafce43db5a02e56826c79f8bc (patch)
treefed484f679ccdeafb686394e288446251eeb7586 /src/interfaces/python/pgdb.py
parentf9ae973c5e280af171ed36f6ea88f0be7e7829e1 (diff)
downloadpostgresql-92f3253926be26dafce43db5a02e56826c79f8bc.tar.gz
postgresql-92f3253926be26dafce43db5a02e56826c79f8bc.zip
Marc-Andre is changing where DateTime goes. This change allows the module
to work either way. Change submitted by Andrew Kuchling <akuchlin@mems-exchange.org>
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