mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-30 19:00:29 +08:00
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>
This commit is contained in:
parent
f9ae973c5e
commit
92f3253926
@ -58,10 +58,13 @@ import _pg
|
|||||||
import string
|
import string
|
||||||
import exceptions
|
import exceptions
|
||||||
import types
|
import types
|
||||||
import DateTime
|
|
||||||
import time
|
import time
|
||||||
import types
|
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
|
### module constants
|
||||||
|
|
||||||
# compliant with DB SIG 2.0
|
# compliant with DB SIG 2.0
|
||||||
|
Loading…
Reference in New Issue
Block a user