pull/13899/merge
doe1080 17 hours ago committed by GitHub
commit 70c41c2860
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -2123,9 +2123,11 @@ def parse_duration(s):
if ms: if ms:
ms = ms.replace(':', '.') ms = ms.replace(':', '.')
return sum(float(part or 0) * mult for part, mult in ( total = sum(float(part or 0) * mult for part, mult in (
(days, 86400), (hours, 3600), (mins, 60), (secs, 1), (ms, 1))) (days, 86400), (hours, 3600), (mins, 60), (secs, 1), (ms, 1)))
return int(total) if total.is_integer() else total
def _change_extension(prepend, filename, ext, expected_real_ext=None): def _change_extension(prepend, filename, ext, expected_real_ext=None):
name, real_ext = os.path.splitext(filename) name, real_ext = os.path.splitext(filename)

Loading…
Cancel
Save