From: D'Arcy J.M. Cain Date: Fri, 30 Mar 2001 12:08:24 +0000 (+0000) Subject: Marc-Andre is changing where DateTime goes. This change allows the module X-Git-Tag: REL7_1~66 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=92f3253926be26dafce43db5a02e56826c79f8bc;p=postgresql Marc-Andre is changing where DateTime goes. This change allows the module to work either way. Change submitted by Andrew Kuchling --- diff --git a/src/interfaces/python/pgdb.py b/src/interfaces/python/pgdb.py index 156350abb2..f52e964114 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