src/utils/str.format: Recognize digits before the '.' in %f formatting.

This commit is contained in:
James Vega 2006-04-06 04:01:11 +00:00
parent 6a2523fa2b
commit 880cce5505

View File

@ -355,7 +355,7 @@ def timestamp(t):
t = time.time()
return time.ctime(t)
_formatRe = re.compile('%(\.\d+f|[bfhiLnpqrstu%])')
_formatRe = re.compile('%((?:\d+)?\.\d+f|[bfhiLnpqrstu%])')
def format(s, *args, **kwargs):
"""w00t.