aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/utils.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/utils.py b/utils/utils.py
index 1cabbdc8..44cf8e59 100644
--- a/utils/utils.py
+++ b/utils/utils.py
@@ -193,3 +193,11 @@ def postprocess_html_file(htmlfilepath):
htmlfileobj.seek(0)
htmlfileobj.write(str(soup))
htmlfileobj.truncate()
+
+
+def static_vars(**kwargs):
+ def decorate(func):
+ for k in kwargs:
+ setattr(func, k, kwargs[k])
+ return func
+ return decorate