Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 92f3253

Browse files
committed
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>
1 parent f9ae973 commit 92f3253

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/interfaces/python/pgdb.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,13 @@
5858
import string
5959
import exceptions
6060
import types
61-
import DateTime
6261
import time
6362
import types
6463

64+
# Marc-Andre is changing where DateTime goes. This handles it either way.
65+
try: from mx import DateTime
66+
except ImportError: import DateTime
67+
6568
### module constants
6669

6770
# compliant with DB SIG 2.0

0 commit comments

Comments
 (0)