X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=macros%2FWordIndex.py;h=b64a3171b85c6b3eede4990cc67ca43c4546923f;hb=2206012d676e2500b6ba5e11f46217654f6d61c1;hp=818a8842b9d72fc45c5fc2918090038834068dda;hpb=f717244ea693c7882948b4758836e530169a6c11;p=geekigeeki.git diff --git a/macros/WordIndex.py b/macros/WordIndex.py old mode 100755 new mode 100644 index 818a884..b64a317 --- a/macros/WordIndex.py +++ b/macros/WordIndex.py @@ -1,4 +1,4 @@ -def _macro_WordIndex(argv): +def _macro_WordIndex(*args, **kvargs): s = make_index_key() pages = list(page_list()) map = {} @@ -10,7 +10,7 @@ def _macro_WordIndex(argv): except KeyError: map[word] = [name] - all_words = map.keys() + all_words = list(map.keys()) all_words.sort() last_letter = None # set title