Module Index page.
()
| 2540 | """ % (version, html.escape(platform.platform(terse=True))) |
| 2541 | |
| 2542 | def html_index(): |
| 2543 | """Module Index page.""" |
| 2544 | |
| 2545 | def bltinlink(name): |
| 2546 | return '<a href="%s.html">%s</a>' % (name, name) |
| 2547 | |
| 2548 | heading = html.heading( |
| 2549 | '<strong class="title">Index of Modules</strong>' |
| 2550 | ) |
| 2551 | names = [name for name in sys.builtin_module_names |
| 2552 | if name != '__main__'] |
| 2553 | contents = html.multicolumn(names, bltinlink) |
| 2554 | contents = [heading, '<p>' + html.bigsection( |
| 2555 | 'Built-in Modules', 'index', contents)] |
| 2556 | |
| 2557 | seen = {} |
| 2558 | for dir in sys.path: |
| 2559 | contents.append(html.index(dir, seen)) |
| 2560 | |
| 2561 | contents.append( |
| 2562 | '<p align=right class="heading-text grey"><strong>pydoc</strong> by Ka-Ping Yee' |
| 2563 | '<ping@lfw.org></p>') |
| 2564 | return 'Index of Modules', ''.join(contents) |
| 2565 | |
| 2566 | def html_search(key): |
| 2567 | """Search results page.""" |
no test coverage detected