summaryrefslogtreecommitdiff
path: root/databases/py-PyGreSQL/files/patch-pgdb.py
blob: 1210ef8e5fa081921d109c913b0c34839f028200 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- pgdb.py.orig	Sun Nov  5 20:15:26 2000
+++ pgdb.py	Thu Nov 29 17:38:24 2001
@@ -58,7 +58,7 @@
 import string
 import exceptions
 import types
-import DateTime
+import mx.DateTime
 import time
 
 ### module constants
@@ -384,13 +384,13 @@
 
 # mandatory type helpers
 def Date(year, month, day):
-	return DateTime.DateTime(year, month, day)
+	return mx.DateTime.DateTime(year, month, day)
 
 def Time(hour, minute, second):
-	return DateTime.TimeDelta(hour, minute, second)
+	return mx.DateTime.TimeDelta(hour, minute, second)
 
 def Timestamp(year, month, day, hour, minute, second):
-	return DateTime.DateTime(year, month, day, hour, minute, second)
+	return mx.DateTime.DateTime(year, month, day, hour, minute, second)
 
 def DateFromTicks(ticks):
 	return apply(Date, time.localtime(ticks)[:3])