Projet

Général

Profil

0001-misc-make-sure-durations-are-integers-9870.patch

Frédéric Péters, 04 février 2016 09:49

Télécharger (722 octets)

Voir les différences:

Subject: [PATCH] misc: make sure durations are integers (#9870)

 wcs/qommon/humantime.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
wcs/qommon/humantime.py
20 20
_hour = 60 * 60
21 21
_day = _hour * 24
22 22
_month = _day * 31
23
_year = _day * 365.25
23
_year = int(_day * 365.25)
24 24

  
25 25
def list2human(stringlist):
26 26
    '''Transform a string list to human enumeration'''
27
-