Lines Matching refs:pat
40 def setpat(self, pat): argument
41 self.patvar.set(pat)
60 def setcookedpat(self, pat): argument
64 pat = re.escape(pat)
65 self.setpat(pat)
68 pat = self.getpat()
70 pat = re.escape(pat)
72 pat = r"\b%s\b" % pat
73 return pat
77 pat = self.getpat()
78 if not pat:
79 self.report_error(pat, "Empty regular expression")
81 pat = self.getcookedpat()
86 prog = re.compile(pat, flags)
91 self.report_error(pat, msg, col)
95 def report_error(self, pat, msg, col=-1): argument
98 if pat:
99 msg = msg + "\nPattern: " + str(pat)