diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-12-17 18:02:39 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-12-17 18:02:39 +0000 |
commit | c453230a96cc31bada490ab83019c637586a4209 (patch) | |
tree | 702bfe085bf2e8ac10b6a4b68a1a3fd071fea175 | |
parent | afc176113911ed1e97712d62b66163580451e6a3 (diff) | |
parent | dafa5e95bd651e5ba2232a3d51d64aa6da97f825 (diff) | |
download | oslo-utils-c453230a96cc31bada490ab83019c637586a4209.tar.gz |
Merge "Fix DeprecationWarning when call method delta_seconds"
-rw-r--r-- | oslo_utils/timeutils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oslo_utils/timeutils.py b/oslo_utils/timeutils.py index 52e99b1..a7d8753 100644 --- a/oslo_utils/timeutils.py +++ b/oslo_utils/timeutils.py @@ -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( |