oops, forgot that part of 3.2 bw compat
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 05 Feb 2010 12:33:54 +0100
changeset 4477 c094101ba85d
parent 4476 14429e8c7590
child 4478 442fd69ff13b
oops, forgot that part of 3.2 bw compat
server/sqlutils.py
--- 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