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

def IS_LINE_JUNK ( line , pat = re . compile ( '\\s*#?\\s*$' ) . match ) : return ( pat ( line ) is not None )
return 1 for ignorable line: iff line is blank or contains a single # .