(func)
| 4 | |
| 5 | def logformat(fmt): |
| 6 | def logged(func): |
| 7 | print('Adding logging to', func.__name__) |
| 8 | @wraps(func) |
| 9 | def wrapper(*args,**kwargs): |
| 10 | print(fmt.format(func=func)) |
| 11 | return func(*args, **kwargs) |
| 12 | return wrapper |
| 13 | return logged |
| 14 | |
| 15 | # Original no-argument @logged decorator defined in terms of the more |
nothing calls this directly
no outgoing calls
no test coverage detected