Searched refs:entitydefs (Results 1 – 7 of 7) sorted by relevance
264 entitydefs = {} variable269 entitydefs[name] = chr(codepoint)271 entitydefs[name] = '&#%d;' % codepoint
364 entitydefs = None variable in HTMLParser384 if HTMLParser.entitydefs is None:385 entitydefs = HTMLParser.entitydefs = {'apos':u"'"}387 entitydefs[k] = unichr(v)389 return self.entitydefs[s]
209 if str in self.entitydefs:210 str = self.entitydefs[str]378 if name in self.entitydefs:379 … self.rawdata = rawdata = rawdata[:res.start(0)] + self.entitydefs[name] + rawdata[i:]770 entitydefs = {'lt': '<', # must use charref variable in XMLParser
415 entitydefs = \ variable in SGMLParser424 table = self.entitydefs
32 from htmlentitydefs import entitydefs
446 entitydefs = None variable in HTMLParser466 if HTMLParser.entitydefs is None:467 entitydefs = HTMLParser.entitydefs = {'apos':u"'"}469 entitydefs[k] = unichr(v)471 return self.entitydefs[s]