This commit is contained in:
Luke Rogers 2013-12-01 00:39:40 +13:00
parent f55c8f8d4e
commit 8b18c33ce5

View file

@ -45,9 +45,9 @@ def format_time(seconds, accuracy=3, simple=False):
period_value, seconds = divmod(seconds,period_seconds) period_value, seconds = divmod(seconds,period_seconds)
i += 1 i += 1
if period_value == 1 or simple: if period_value == 1 or simple:
strings.append("%s%s" % (period_value, period_name)) strings.append("{}{}".format(period_value, period_name))
else: else:
strings.append("%s%ss" % (period_value, period_name)) strings.append("{}{}s".format(period_value, period_name))
else: else:
break break