(line, pat=re.compile(r"\s*(?:#\s*)?$").match)
return pat(line) is not None
r"""
    Return True for ignorable line: iff `line` is blank or contains a single '#'.

    Examples:

    >>> IS_LINE_JUNK('\n')
    True
    >>> IS_LINE_JUNK('  #   \n')
    True
    >>> IS_LINE_JUNK('hello\n')
    False
r"""
    Return True for ignorable line: iff `line` is blank or contains a single '#'.
r Return True for ignorable line : iff line is blank or contains a single # .
def IS_LINE_JUNK(line, pat=re.compile(r"\s*(?:#\s*)?$").match):
    r"""
    Return True for ignorable line: iff `line` is blank or contains a single '#'.

    Examples:

    >>> IS_LINE_JUNK('\n')
    True
    >>> IS_LINE_JUNK('  #   \n')
    True
    >>> IS_LINE_JUNK('hello\n')
    False
    """

    return pat(line) is not None
def IS_LINE_JUNK ( line , pat = re . compile ( r"\s*(?:#\s*)?$" ) . match ) : return pat ( line ) is not None