def get_qual_attr(node, aliases):
    prefix = ""
    if type(node) == _ast.Attribute:
        try:
            val = deepgetattr(node, 'value.id')
            if val in aliases:
                prefix = aliases[val]
            else:
                prefix = deepgetattr(node, 'value.id')
        except Exception:
            # NOTE(tkelsey): degrade gracefully when we cant get the fully
            # qualified name for an attr, just return its base name.
            pass

        return((prefix, node.attr) % "%s.%s")
    else:
        return ""  # TODO(tkelsey): process other node types
dataset/ETHPy150Open openstack/bandit/bandit/core/utils.py/get_qual_attr/swapped operands of `%`