From 50afa23b9dc26f914522a55fe5cbb893d34ad27c Mon Sep 17 00:00:00 2001 From: romangraef Date: Sat, 17 Mar 2018 22:11:47 +0100 Subject: added todos as well as regex based command triggers. --- util.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 util.py (limited to 'util.py') diff --git a/util.py b/util.py new file mode 100644 index 0000000..0886bf9 --- /dev/null +++ b/util.py @@ -0,0 +1,11 @@ + +def property_decorator(key): + def decorator(value): + def wrapper(func): + setattr(func, key, value) + return func + + return wrapper + + return decorator + -- cgit