Beispiel #1
0
    def regenerate_re(self):
        rlist = []
        if self.subcode_indented:
            rlist.append(SubcodeColorDelegator.maybe_indented_re)
        else:
            rlist.append(SubcodeColorDelegator.maybe_re)

        rlist.append(make_pat())
        ret = re.compile('|'.join(rlist), re.S)
        self.prog = ret
Beispiel #2
0
 def test_make_pat(self):
     self.assertTrue(colorizer.make_pat())
 def test_make_pat(self):
     # Tested in more detail by testing prog.
     self.assertTrue(colorizer.make_pat())
Beispiel #4
0
 def test_make_pat(self):
     self.assertTrue(colorizer.make_pat())