Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/plugins/notchkd.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/notchkd.py')
-rw-r--r--plugins/notchkd.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/notchkd.py b/plugins/notchkd.py
index 6b9a6f3..237813a 100644
--- a/plugins/notchkd.py
+++ b/plugins/notchkd.py
@@ -33,7 +33,9 @@ import plugins
def generate(site):
"""Output the list of not checked pages to the given file descriptor."""
# get all yanked urls
- links = filter(lambda a: a.isyanked, site.linkMap.values())
+ links = [ x
+ for x in site.linkMap.values()
+ if x.isyanked ]
links.sort(lambda a, b: cmp(a.url, b.url))
# present results
fp = plugins.open_html(plugins.notchkd, site)
@@ -54,9 +56,9 @@ def generate(site):
fp.write(
' <li>\n'
' %(link)s\n'
- % { 'link': plugins.make_link(link,link.url) })
+ % { 'link': plugins.make_link(link, link.url) })
# present a list of parents
- plugins.print_parents(fp,link,' ')
+ plugins.print_parents(fp, link, ' ')
fp.write(
' </li>\n')
fp.write(