# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1236694684 -3600 # Node ID 4c097dbaf56036b57d62db0a7d3ccac5e820b902 # Parent aebf37f460c1e4a8edc81b9362ce401c1e48bd94 avoid deprecation warning diff -r aebf37f460c1 -r 4c097dbaf560 server/sqlutils.py --- a/server/sqlutils.py Tue Mar 10 15:17:55 2009 +0100 +++ b/server/sqlutils.py Tue Mar 10 15:18:04 2009 +0100 @@ -164,11 +164,11 @@ warn('found mx date time instance, please update to use datetime', DeprecationWarning) val = datetime(val.year, val.month, val.day, - val.hour, val.minute, val.second) + val.hour, val.minute, int(val.second)) elif type(val) is DateTimeDeltaType: warn('found mx date time instance, please update to use datetime', DeprecationWarning) - val = timedelta(0, val.seconds, 0) + val = timedelta(0, int(val.seconds), 0) args[key] = val # should not collide args.update(query_args)