From ad86c58bf14eadd2ed5a05a2fb9f563c04dcc91b Mon Sep 17 00:00:00 2001 From: Bernie Innocenti Date: Mon, 17 Aug 2009 21:08:00 +0200 Subject: [PATCH] Rename variable re to avoid clash with module name --- geekigeeki.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/geekigeeki.py b/geekigeeki.py index f5c9f96..f549d0f 100755 --- a/geekigeeki.py +++ b/geekigeeki.py @@ -330,11 +330,11 @@ def make_index_key(): links = ['%s' % (ch, ch) for ch in 'abcdefghijklmnopqrstuvwxyz'] return '

' + ' | '.join(links) + '

' -def page_list(dirname=None, re=None): - if re is None: +def page_list(dirname=None, search_re=None): + if search_re is None: # FIXME: WikiWord is too restrictive now! - re = re.compile(r"^\b((([A-Z][a-z0-9]+){2,}/)*([A-Z][a-z0-9]+){2,})\b$") - return sorted(filter(re.match, os.listdir(dirname or config_get('data_dir', 'data')))) + search_re = re.compile(r"^\b((([A-Z][a-z0-9]+){2,}/)*([A-Z][a-z0-9]+){2,})\b$") + return sorted(filter(search_re.match, os.listdir(dirname or config_get('data_dir', 'data')))) def send_footer(mod_string=None): if config_get('debug_cgi', False): -- 2.25.1