From 26713dc072157f98578ef6fc2a60288c2b155326 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 16 Mar 2015 02:36:17 +0300 Subject: [PATCH] gen-sitemap: refactoring --- gen-sitemap.py | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) 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 -- 2.39.5