diff options
Diffstat (limited to 'util.py')
-rw-r--r-- | util.py | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -0,0 +1,11 @@ + +def property_decorator(key): + def decorator(value): + def wrapper(func): + setattr(func, key, value) + return func + + return wrapper + + return decorator + |