Lines Matching refs:self
38 def __init__(self, fp, keep_mismatches=False): argument
39 self.filename = fp
40 self.mismatches = 0
41 self.messages = []
42 self.rgx = re.compile(RE_TEXT, re.MULTILINE)
45 match = self.rgx.match(line)
49 self.messages.append("%s: %s" % (component, message))
51 self.messages.append(line)
53 self.mismatches += 1
54 def save(self): argument
57 delete=False, prefix=os.path.basename(self.filename)) as f:
58 for msg in self.messages: