class ByTagKeywordRemover(_KeywordRemover):
    def __init__(self, pattern):
        _KeywordRemover.__init__(self)
        self._pattern = TagPattern(pattern)

    def start_keyword(self, kw):
        if self._pattern.match(kw.tags) and not self._warning_or_error(kw):
            self._clear_content(kw)
예제 #2
0
class ByTagKeywordRemover(_KeywordRemover):

    def __init__(self, pattern):
        _KeywordRemover.__init__(self)
        self._pattern = TagPattern(pattern)

    def start_keyword(self, kw):
        if self._pattern.match(kw.tags) and not self._warning_or_error(kw):
            self._clear_content(kw)
 def __init__(self, pattern):
     _KeywordRemover.__init__(self)
     self._pattern = TagPattern(pattern)
예제 #4
0
 def __init__(self, pattern):
     _KeywordRemover.__init__(self)
     self._pattern = TagPattern(pattern)