aboutsummaryrefslogtreecommitdiff
path: root/pyblog
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2019-05-26 12:44:46 +0200
committerneodarz <neodarz@neodarz.net>2019-05-26 12:44:46 +0200
commit075cde20b4dbc9e43924a5b469a6bf3ddeb48d38 (patch)
tree5d27d78d01f6d493deebcb5ae868b8316d0c802e /pyblog
parent2e8c6dfd876d25a00897e05ae2883a47f79d3eea (diff)
downloadmy_new_personal_website-075cde20b4dbc9e43924a5b469a6bf3ddeb48d38.tar.xz
my_new_personal_website-075cde20b4dbc9e43924a5b469a6bf3ddeb48d38.zip
Move static_vars function to external file
Diffstat (limited to 'pyblog')
-rwxr-xr-xpyblog10
1 files changed, 1 insertions, 9 deletions
diff --git a/pyblog b/pyblog
index 30103491..71dacf59 100755
--- a/pyblog
+++ b/pyblog
@@ -766,16 +766,8 @@ def generate_index_and_feed():
generate_sitemap(feed)
-def static_vars(**kwargs):
- def decorate(func):
- for k in kwargs:
- setattr(func, k, kwargs[k])
- return func
- return decorate
-
-
# exclude_list is only inialized once to avoid constant disk IO
-@static_vars(exclude_list=None)
+@utils.static_vars(exclude_list=None)
def generate_blog(fresh=False, report_total_errors=True):
"""Generate the blog in BUILDDIR.