Home
last modified time | relevance | path

Searched refs:IS_LINE_JUNK (Results 1 - 2 of 2) sorted by relevance

/third_party/python/Lib/test/
H A Dtest_difflib.py486 self.assertTrue(difflib.IS_LINE_JUNK(line), repr(line))
490 self.assertFalse(difflib.IS_LINE_JUNK(line), repr(line))
494 self.assertFalse(difflib.IS_LINE_JUNK(evil_input))
/third_party/python/Lib/
H A Ddifflib.py30 'Differ','IS_CHARACTER_JUNK', 'IS_LINE_JUNK', 'context_diff',
818 `IS_LINE_JUNK` may be used to filter out lines without visible
1045 def IS_LINE_JUNK(line, pat=re.compile(r"\s*(?:#\s*)?$").match): function
1051 >>> IS_LINE_JUNK('\n')
1053 >>> IS_LINE_JUNK(' # \n')
1055 >>> IS_LINE_JUNK('hello\n')

Completed in 4 milliseconds