(name, fc, ff, fconstants)
| 3 | import inspect |
| 4 | |
| 5 | def print_element(name, fc, ff, fconstants): |
| 6 | isclass = inspect.isclass(eval(name)) |
| 7 | ismodule = inspect.ismodule(eval(name)) |
| 8 | isroutine = inspect.isroutine(eval(name)) |
| 9 | if (isclass): |
| 10 | print("* :class:`{0}`".format(name), file=fc) |
| 11 | elif (isroutine): |
| 12 | print("* :func:`{0}`".format(name), file=ff) |
| 13 | elif (not ismodule): |
| 14 | print("* :const:`{0}`".format(name), file=fconstants) |
| 15 | |
| 16 | def make_listing_files(): |
| 17 |
no test coverage detected