Function
difflib.IS_LINE_JUNK

Signature

IS_LINE_JUNK(line, pat=<built-in method match of _sre.SRE_Pattern object at 0x41107088>)

Documentation String

Return 1 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