mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
src/utils/str.format: Recognize digits before the '.' in %f formatting.
This commit is contained in:
parent
6a2523fa2b
commit
880cce5505
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user