server/sqlutils.py
changeset 4477 c094101ba85d
parent 4474 55fe19813bb7
child 4622 790181bfd19c
--- a/server/sqlutils.py	Fri Feb 05 12:16:52 2010 +0100
+++ b/server/sqlutils.py	Fri Feb 05 12:33:54 2010 +0100
@@ -251,16 +251,6 @@
                     value = todate(value)
                 elif isinstance(value, Binary):
                     value = self.binary(value.getvalue())
-                # XXX <3.2 bw compat
-                elif type(value) is DateTimeType:
-                    warn('found mx date time instance, please update to use datetime',
-                         DeprecationWarning)
-                    value = datetime(value.year, value.month, value.day,
-                                   value.hour, value.minute, int(value.second))
-                elif type(value) is DateTimeDeltaType:
-                    warn('found mx date time instance, please update to use datetime',
-                         DeprecationWarning)
-                    value = timedelta(0, int(value.seconds), 0)
             attrs[SQL_PREFIX+str(attr)] = value
         return attrs