Arguments
- Name: lang, Type: str
- language
Source
def select_lang(self, lang):
ret = pyNodeList()
for node in self:
l = node.attr('lang')
if l is not None and l == lang:
ret.append(node)
if len(ret) == 1: return ret[0]
else: return ret