From e4b7e46ac5ce20d17166112fd451e425cb2c260f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Thu, 4 Feb 2016 09:47:59 +0100 Subject: [PATCH] misc: make sure durations are integers (#9870) --- wcs/qommon/humantime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcs/qommon/humantime.py b/wcs/qommon/humantime.py index ea0e62a..f3a4195 100644 --- a/wcs/qommon/humantime.py +++ b/wcs/qommon/humantime.py @@ -20,7 +20,7 @@ _minute = 60 _hour = 60 * 60 _day = _hour * 24 _month = _day * 31 -_year = _day * 365.25 +_year = int(_day * 365.25) def list2human(stringlist): '''Transform a string list to human enumeration''' -- 2.7.0