Module Index page.
()
| 2588 | """ % (version, html.escape(platform.platform(terse=True))) |
| 2589 | |
| 2590 | def html_index(): |
| 2591 | """Module Index page.""" |
| 2592 | |
| 2593 | def bltinlink(name): |
| 2594 | return '<a href="%s.html">%s</a>' % (name, name) |
| 2595 | |
| 2596 | heading = html.heading( |
| 2597 | '<strong class="title">Index of Modules</strong>' |
| 2598 | ) |
| 2599 | names = [name for name in sys.builtin_module_names |
| 2600 | if name != '__main__'] |
| 2601 | contents = html.multicolumn(names, bltinlink) |
| 2602 | contents = [heading, '<p>' + html.bigsection( |
| 2603 | 'Built-in Modules', 'index', contents)] |
| 2604 | |
| 2605 | seen = {} |
| 2606 | for dir in sys.path: |
| 2607 | contents.append(html.index(dir, seen)) |
| 2608 | |
| 2609 | contents.append( |
| 2610 | '<p align=right class="heading-text grey"><strong>pydoc</strong> by Ka-Ping Yee' |
| 2611 | '<ping@lfw.org></p>') |
| 2612 | return 'Index of Modules', ''.join(contents) |
| 2613 | |
| 2614 | def html_search(key): |
| 2615 | """Search results page.""" |
no test coverage detected