aboutsummaryrefslogtreecommitdiff
path: root/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'util.py')
-rw-r--r--util.py11
1 files changed, 11 insertions, 0 deletions
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
+