def reset(self, query): #query is the list of keywords,eg:['yu','aoi'] query = [escape(word) for word in query] words = '|'.join(query) self.Q_PATTERN = re.compile(r'(?P<query>' + words + r')', re.I) self.highlight = 0 BaseHTMLProcessor.reset(self)
def reset(self,query): #query is the list of keywords,eg:['yu','aoi'] query=[escape(word) for word in query] words='|'.join(query) self.Q_PATTERN=re.compile(r'(?P<query>' + words + r')',re.I) self.highlight=0 BaseHTMLProcessor.reset(self)
def reset(self): self._start_a = None self.methodQueue = [] self.divClassStack = [] self.articleRec = [] BaseHTMLProcessor.reset(self)
def reset(self): # extend (called from __init__ in ancestor) # Reset all data attributes self.verbatim = 0 BaseHTMLProcessor.reset(self)
def reset(self): '''extend (called from __init__ in ancestor)''' self.verbatim = 0 BaseHTMLProcessor.reset(self)
def reset(self): BaseHTMLProcessor.reset(self) self.colorindex = 0 self.needcolor = 0
def reset(self): self.verbatim = 0 BaseHTMLProcessor.reset(self)
def reset(self): self.meta = {'data':''} self.div_stack = [] # keep track of div self.methodStack = [] BaseHTMLProcessor.reset(self)
def reset(self): self.meta = {'data': ''} self.div_stack = [] # keep track of div self.methodStack = [] BaseHTMLProcessor.reset(self)