(lines_enum)
Strips comments and filter empty lines.
Strips comments and filter empty lines.
Strips comments and filter empty lines .
def ignore_comments(lines_enum):
    # type: (ReqFileLines) -> ReqFileLines
    """
    Strips comments and filter empty lines.
    """
    for line_number, line in lines_enum:
        line = COMMENT_RE.sub('', line)
        line = line.strip()
        if line:
            yield line_number, line
def ignore_comments ( lines_enum ) : # type: (ReqFileLines) -> ReqFileLines for line_number , line in lines_enum : line = COMMENT_RE . sub ( '' , line ) line = line . strip ( ) if line : yield line_number , line