Merge "Fix DeprecationWarning when call method delta_seconds"

This commit is contained in:
Jenkins
2015-12-17 18:02:39 +00:00
committed by Gerrit Code Review

View File

@@ -295,7 +295,7 @@ def delta_seconds(before, after):
datetime objects (as a float, to microsecond resolution).
"""
delta = after - before
return total_seconds(delta)
return delta.total_seconds()
@removals.remove(