sassw: switch elapsed time to use an f-string

This commit is contained in:
Frédéric Péters 2019-08-23 10:00:32 +02:00
parent 27e898fbe5
commit 0ffff88a7c
1 changed files with 1 additions and 2 deletions

View File

@ -29,8 +29,7 @@ class EventManager(pyinotify.ProcessEvent):
print(f'{filename} changed, building', end='') print(f'{filename} changed, building', end='')
t0 = time.time() t0 = time.time()
build() build()
elapsed_time = time.time() - t0 print(f' ({time.time() - t0:.2f}s)')
print(' (%.2fs)' % (time.time() - t0))
build() build()
wm = pyinotify.WatchManager() wm = pyinotify.WatchManager()