

def getSubtag(self, name=None):
    'determine whether current tag contains other tags, and returns\n        the tag with a matching name (if name is given) or None (if not)'
    if ('Icontain' in self.tag):
        for subtag in self.tag['Icontain']:
            if (subtag.name == name):
                return self
    return None

dataset/ETHPy150Open pybrain/pybrain/pybrain/rl/environments/ode/tools/xmltools.py XMLstruct.getSubtag/VarMisuse@51/119 `subtag`->`self`