projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9ae973
)
Marc-Andre is changing where DateTime goes. This change allows the module
author
D'Arcy J.M. Cain
Fri, 30 Mar 2001 12:08:24 +0000
(12:08 +0000)
committer
D'Arcy J.M. Cain
Fri, 30 Mar 2001 12:08:24 +0000
(12:08 +0000)
to work either way.
Change submitted by Andrew Kuchling
src/interfaces/python/pgdb.py
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/python/pgdb.py
b/src/interfaces/python/pgdb.py
index 156350abb241688a47c022c470f23994813f9c2f..f52e96411458a000728b4f91e6ecfdb9b6d4e5fa 100644
(file)
--- 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