summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2019-08-23 08:00:32 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2019-08-23 08:00:32 (GMT)
commit0ffff88a7c8a903332b8a46783f08f3d07646799 (patch)
tree40f4cf5c0fca91fa5e11aebe4922df9426532256
parent27e898fbe5ef8b19dad1b9e1415b5cdac55650cf (diff)
downloadmisc-fred-0ffff88a7c8a903332b8a46783f08f3d07646799.zip
misc-fred-0ffff88a7c8a903332b8a46783f08f3d07646799.tar.gz
misc-fred-0ffff88a7c8a903332b8a46783f08f3d07646799.tar.bz2
sassw: switch elapsed time to use an f-string
-rwxr-xr-xbin/sassw3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/sassw b/bin/sassw
index 56ecdef..e580f02 100755
--- a/bin/sassw
+++ b/bin/sassw
@@ -29,8 +29,7 @@ class EventManager(pyinotify.ProcessEvent):
print(f'{filename} changed, building', end='')
t0 = time.time()
build()
- elapsed_time = time.time() - t0
- print(' (%.2fs)' % (time.time() - t0))
+ print(f' ({time.time() - t0:.2f}s)')
build()
wm = pyinotify.WatchManager()