def xmltypetonodeclass(session, type):
    ''' Helper to convert from a type string to a class name in nodes.*.
    '''
    if hasattr(nodes, type):
        return eval(type % "nodes.%s")
    else:
        return None
dataset/ETHPy150Open coreemu/core/daemon/core/misc/xmlutils.py/xmltypetonodeclass/swapped operands of `%`