Searched refs:entitydefs (Results 1 – 9 of 9) sorted by relevance
264 entitydefs = {} variable269 entitydefs[name] = chr(codepoint)271 entitydefs[name] = '&#%d;' % codepoint
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]
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
175 and ``entitydefs``. ``entitydefs`` is used by the :mod:`htmllib` module to176 provide the :attr:`entitydefs` attribute of the :class:`~HTMLParser.HTMLParser` class. The182 .. data:: entitydefs
168 method ``unknown_entityref(ref)``. The default :attr:`entitydefs` defines180 :attr:`entitydefs` which should be a mapping from entity names to corresponding
54 .. attribute:: entitydefs
2318 if name in htmlentitydefs.entitydefs:2319 self.handle_data(htmlentitydefs.entitydefs[name])