Searched refs:entitydefs (Results 1 – 10 of 10) sorted by relevance
264 entitydefs = {} variable269 entitydefs[name] = chr(codepoint)271 entitydefs[name] = '&#%d;' % codepoint
446 entitydefs = None variable in HTMLParser465 if HTMLParser.entitydefs is None:467 entitydefs = {'apos':u"'"}469 entitydefs[k] = unichr(v)470 HTMLParser.entitydefs = entitydefs472 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
2503 entitydefs = {} variable2507 entitydefs[name] = chr(codepoint)
14 :data:`name2codepoint`, :data:`codepoint2name`, and :data:`entitydefs`.29 .. data:: 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