1
0
mirror of https://gitlab.crans.org/bde/nk20-scripts synced 2025-06-29 17:51:08 +02:00

make things cleaner

This commit is contained in:
Pierre-antoine Comby
2020-05-26 23:53:13 +02:00
parent 985f7c7bcd
commit 5af336fff3
4 changed files with 5 additions and 4 deletions

View File

@ -19,7 +19,7 @@ def timed(method):
ts = time.time()
result = method(*args, **kw)
te = time.time()
args[0].print_success(f"{method.__name__} executed ({te-ts:.2f}s)")
args[0].print_success(f"\n {method.__name__} executed ({te-ts:.2f}s)")
return result
return _timed