From: Oleg Broytman Date: Sun, 15 Mar 2015 23:36:17 +0000 (+0300) Subject: gen-sitemap: refactoring X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=26713dc072157f98578ef6fc2a60288c2b155326;p=phdru.name%2Fphdru.name.git gen-sitemap: refactoring --- diff --git a/gen-sitemap.py b/gen-sitemap.py index 088f838..aaff97a 100755 --- a/gen-sitemap.py +++ b/gen-sitemap.py @@ -49,23 +49,24 @@ for dirpath, dirs, files in sorted(os.walk(fullpath)): pass def _tree2html(tree, level=0): - indent = " " * level - strings = [] - strings.append(indent + "") - return '\n'.join(strings) + return "\n".join(parts) sitemap_tmpl = ["""\ #extends phd_site