projects
/
kiosk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Towards mypy cleanliness.
[kiosk.git]
/
decorators.py
diff --git
a/decorators.py
b/decorators.py
index 1f50bf8a60731c793fb49e62dc1d105a93a42b2e..ba2e53d4b594a27f21a06a77ca8242b92c2e8b9b 100644
(file)
--- a/
decorators.py
+++ b/
decorators.py
@@
-1,8
+1,10
@@
+#!/usr/bin/env python3
+
from datetime import datetime
import functools
from datetime import datetime
import functools
-def invo
k
ation_logged(func):
+def invo
c
ation_logged(func):
@functools.wraps(func)
def wrapper(*args, **kwargs):
now = datetime.now()
@functools.wraps(func)
def wrapper(*args, **kwargs):
now = datetime.now()
@@
-18,7
+20,7
@@
def invokation_logged(func):
# Test
# Test
-# @invo
k
ation_logged
+# @invo
c
ation_logged
# def f(x):
# print(x * x)
# return x * x
# def f(x):
# print(x * x)
# return x * x