Kaydet (Commit) 661b0a15 authored tarafından Georg Brandl's avatar Georg Brandl

Use a list comprehension instead of list(filter()).

üst 06b1ab8e
......@@ -1983,9 +1983,8 @@ def serve(port, callback=None, completer=None):
'#ffffff', '#7799ee')
def bltinlink(name):
return '<a href="%s.html">%s</a>' % (name, name)
names = filter(lambda x: x != '__main__',
sys.builtin_module_names)
contents = html.multicolumn(list(names), bltinlink)
names = [x for x in sys.builtin_module_names if x != '__main__']
contents = html.multicolumn(names, bltinlink)
indices = ['<p>' + html.bigsection(
'Built-in Modules', '#ffffff', '#ee77aa', contents)]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment