Project

General

Profile

0001-misc-fix-humantime-for-units-with-identical-singular.patch

Frédéric Péters, 26 January 2016 04:27 PM

Download (808 Bytes)

View differences:

Subject: [PATCH] misc: fix humantime for units with identical singular and
 plural forms (#9774)

 wcs/qommon/humantime.py | 1 +
 1 file changed, 1 insertion(+)
wcs/qommon/humantime.py
54 54
            m = re.search(r"(\d+)\s*\b%s\b" % word, humanduration)
55 55
            if m:
56 56
                seconds = seconds + int(m.group(1)) * quantity
57
                break
57 58
    return seconds
58 59

  
59 60
def seconds2humanduration(seconds):
60
-