aboutsummaryrefslogtreecommitdiff
path: root/pyblog
diff options
context:
space:
mode:
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.