Lines Matching refs:markup

915         markup = None
917 markup = markupName
918 markupAttrs = markup
924 or (markup and self._matches(markup, self.name)) \
925 or (not markup and self._matches(markupName, self.name)):
944 if markup:
945 found = markup
950 def search(self, markup): argument
955 if hasattr(markup, "__iter__") \
956 and not isinstance(markup, Tag):
957 for element in markup:
964 elif isinstance(markup, Tag):
966 found = self.searchTag(markup)
968 elif isinstance(markup, NavigableString) or \
969 isinstance(markup, basestring):
970 if self._matches(markup, self.text):
971 found = markup
974 % markup.__class__
977 def _matches(self, markup, matchAgainst): argument
981 result = markup is not None
983 result = matchAgainst(markup)
987 if isinstance(markup, Tag):
988 markup = markup.name
989 if markup and not isinstance(markup, basestring):
990 markup = unicode(markup)
994 result = markup and matchAgainst.search(markup)
996 result = markup in matchAgainst
998 result = markup.has_key(matchAgainst)
999 elif matchAgainst and isinstance(markup, basestring):
1000 if isinstance(markup, unicode):
1006 result = matchAgainst == markup
1083 def __init__(self, markup="", parseOnlyThese=None, fromEncoding=None, argument
1142 if hasattr(markup, 'read'): # It's a file-type object.
1143 markup = markup.read()
1144 self.markup = markup
1150 self.markup = None # The markup can now be GCed
1164 markup = self.markup
1165 if isinstance(markup, unicode):
1170 (markup, [self.fromEncoding, inDocumentEncoding],
1172 markup = dammit.unicode
1175 if markup:
1180 markup = fix.sub(m, markup)
1189 SGMLParser.feed(self, markup)
1769 def __init__(self, markup, overrideEncodings=[], argument
1772 self.markup, documentEncoding, sniffedEncoding = \
1773 self._detectEncoding(markup, isHTML)
1776 if markup == '' or isinstance(markup, unicode):
1778 self.unicode = unicode(markup)
1791 if not u and chardet and not isinstance(self.markup, unicode):
1792 u = self._convertFrom(chardet.detect(self.markup)['encoding'])
1819 markup = self.markup
1826 markup = re.compile("([\x80-\x9f])").sub \
1828 markup)
1832 u = self._toUnicode(markup, proposed)
1833 self.markup = u
1840 return self.markup