From 20b311258c244e5f8724cd3c90fd92b7b9d20914 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 26 Jan 2016 16:26:00 +0100 Subject: [PATCH] misc: fix humantime for units with identical singular and plural forms (#9774) --- wcs/qommon/humantime.py | 1 + 1 file changed, 1 insertion(+) diff --git a/wcs/qommon/humantime.py b/wcs/qommon/humantime.py index 68b9ad9..ea0e62a 100644 --- a/wcs/qommon/humantime.py +++ b/wcs/qommon/humantime.py @@ -54,6 +54,7 @@ def humanduration2seconds(humanduration): m = re.search(r"(\d+)\s*\b%s\b" % word, humanduration) if m: seconds = seconds + int(m.group(1)) * quantity + break return seconds def seconds2humanduration(seconds): -- 2.7.0