def _get_qname(element, version):
  if isinstance(element._qname, tuple):
    if len(element._qname) <= version:
      return element._qname[version-1]
    else:
      return element._qname[-1]
  else:
    return element._qname
dataset/ETHPy150Open CollabQ/CollabQ/vendor/atom/core.py/_get_qname/swapped operands of `<=`