Searched refs:treeType (Results 1 – 3 of 3) sorted by relevance
36 def getTreeBuilder(treeType, implementation=None, **kwargs): argument55 treeType = treeType.lower()56 if treeType not in treeBuilderCache:57 if treeType == "dom":65 elif treeType == "lxml":67 treeBuilderCache[treeType] = etree_lxml.TreeBuilder68 elif treeType == "etree":75 raise ValueError("""Unrecognised treebuilder "%s" """ % treeType)76 return treeBuilderCache.get(treeType)
24 def getTreeWalker(treeType, implementation=None, **kwargs): argument42 treeType = treeType.lower()43 if treeType not in treeWalkerCache:44 if treeType in ("dom", "pulldom"):45 name = "%s.%s" % (__name__, treeType)48 treeWalkerCache[treeType] = mod.TreeWalker49 elif treeType == "genshi":51 treeWalkerCache[treeType] = genshistream.TreeWalker52 elif treeType == "lxml":54 treeWalkerCache[treeType] = lxmletree.TreeWalker[all …]
717 def getFirstChildWithType(self, treeType): argument719 if child.getType() == treeType: