projects
/
geekigeeki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9e62065
)
Rename variable re to avoid clash with module name
author
Bernie Innocenti
<bernie@codewiz.org>
Mon, 17 Aug 2009 19:08:00 +0000
(21:08 +0200)
committer
Bernie Innocenti
<bernie@codewiz.org>
Mon, 17 Aug 2009 19:08:00 +0000
(21:08 +0200)
geekigeeki.py
patch
|
blob
|
history
diff --git
a/geekigeeki.py
b/geekigeeki.py
index f5c9f96b227d3e4998fa215c437cd8d75ea7108e..f549d0ff2359b47596abd228e480303ebd1b764f 100755
(executable)
--- a/
geekigeeki.py
+++ b/
geekigeeki.py
@@
-330,11
+330,11
@@
def make_index_key():
links = ['<a href="#%s">%s</a>' % (ch, ch) for ch in 'abcdefghijklmnopqrstuvwxyz']
return '<p style="text-align: center">' + ' | '.join(links) + '</p>'
links = ['<a href="#%s">%s</a>' % (ch, ch) for ch in 'abcdefghijklmnopqrstuvwxyz']
return '<p style="text-align: center">' + ' | '.join(links) + '</p>'
-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!
# 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):
def send_footer(mod_string=None):
if config_get('debug_cgi', False):