def _match_space_at_line ( line ) : regex = re . compile ( r"^{0}$" . format ( _MDL_COMMENT ) ) return regex . match ( line )
how to detect blank line in python
Return a re . match object if an empty comment was found on line .
def _match_space_at_line(line):
    """Return a re.match object if an empty comment was found on line."""
    regex = re.compile(r"^{0}$".format(_MDL_COMMENT))
    return regex.match(line)