/ HappyDoc3-r3_1 / happydoclib / utils.py
Utility functions which do not seem to fit elsewhere.
extractSummary ( text, _summary_pattern=re.compile( r'^\s*([^\n]+)\n' ) )
Given a block of text, extract a summary from it.
isSomethingThatLooksLikeDirectory ( path, includeLinks=1 )
Returns boolean indicating whether or not path looks like a directory.
getMimeType ( path )
Returns the mimetype and encoding for path.