From 7119e29cb535426c587eaf2cfc2cfcd11a422df0 Mon Sep 17 00:00:00 2001 From: Dina Belova Date: Mon, 3 Jun 2013 17:44:55 +0400 Subject: Enable hacking H404 test. H404 - multi line docstring should start with a summary. Change-Id: I2099e1ee81ff9657f7a07401b8e8f3327d03bdbd --- openstack/common/timeutils.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'openstack/common/timeutils.py') 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 -- cgit