Lines Matching refs:pattern
38 pattern = "diff --git"
39 if not line.startswith(pattern):
52 pattern = "new file"
53 if not line.startswith(pattern):
61 pattern = "---\ (a/)?.*"
62 if re.match(pattern, line) is None:
70 pattern = "\+\+\+\ b/(.*)"
71 if re.match(pattern, line) is None:
77 res = re.match(pattern, line)
89 pattern = "@@\ -[0-9]+,[0-9]+\ \+([0-9]+)(,[0-9]+)?\ @@.*"
90 if control_block["match_flag"] is False or re.match(pattern, line) is None:
93 res = re.match(pattern, line)
167 for pattern in patterns:
168 pattern_dict = {pattern: {}}
183 def get_diff_dict(self, pattern): argument
185 if pattern in self.diff_dict.keys():
186 ret_diff = self.diff_dict[pattern]