diff options
author | Dina Belova <dbelova@mirantis.com> | 2013-06-03 17:44:55 +0400 |
---|---|---|
committer | Dina Belova <dbelova@mirantis.com> | 2013-06-11 18:28:29 +0400 |
commit | 7119e29cb535426c587eaf2cfc2cfcd11a422df0 (patch) | |
tree | ee61f4db5c8ef559a9c50c5c501fb6c421f41fa0 /openstack/common/timeutils.py | |
parent | ebaa578351c9c6b47c2f28ef6d74451e1483036b (diff) | |
download | oslo-7119e29cb535426c587eaf2cfc2cfcd11a422df0.tar.gz oslo-7119e29cb535426c587eaf2cfc2cfcd11a422df0.tar.xz oslo-7119e29cb535426c587eaf2cfc2cfcd11a422df0.zip |
Enable hacking H404 test.
H404 - multi line docstring should start with a summary.
Change-Id: I2099e1ee81ff9657f7a07401b8e8f3327d03bdbd
Diffstat (limited to 'openstack/common/timeutils.py')
-rw-r--r-- | openstack/common/timeutils.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/openstack/common/timeutils.py b/openstack/common/timeutils.py index 008e9c8..ac2441b 100644 --- a/openstack/common/timeutils.py +++ b/openstack/common/timeutils.py @@ -111,9 +111,9 @@ utcnow.override_time = None def set_time_override(override_time=datetime.datetime.utcnow()): - """ - Override utils.utcnow to return a constant time or a list thereof, - one at a time. + """Overrides utils.utcnow. + + Make it return a constant time or a list thereof, one at a time. """ utcnow.override_time = override_time @@ -162,7 +162,8 @@ def unmarshall_time(tyme): def delta_seconds(before, after): - """ + """Return the difference between two timing objects. + Compute the difference in seconds between two date, time, or datetime objects (as a float, to microsecond resolution). """ @@ -175,8 +176,7 @@ def delta_seconds(before, after): def is_soon(dt, window): - """ - Determines if time is going to happen in the next window seconds. + """Determines if time is going to happen in the next window seconds. :params dt: the time :params window: minimum seconds to remain to consider the time not soon |