Projet

Général

Profil

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

Frédéric Péters, 26 janvier 2016 16:27

Télécharger (808 octets)

Voir les différences:

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
-