Get the doc string or comments for an object.
(object)
| 135 | inherit_class_doc=False) |
| 136 | |
| 137 | def getdoc(object): |
| 138 | """Get the doc string or comments for an object.""" |
| 139 | result = _getdoc(object) or inspect.getcomments(object) |
| 140 | return result and re.sub('^ *\n', '', result.rstrip()) or '' |
| 141 | |
| 142 | def splitdoc(doc): |
| 143 | """Split a doc string into a synopsis line (if any) and the rest.""" |
no test coverage detected
searching dependent graphs…