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)
88 self.report_error(pat, e.msg, e.pos)
92 def report_error(self, pat, msg, col=None): argument
95 if pat:
96 msg = msg + "\nPattern: " + str(pat)