def _iter(root, term):
    if sys.version_info < (2, 7):
        return root.getiterator(term)
    else:
        return root.iter(term)
Checks for python2.6 or python2.7
dataset/ETHPy150Open saltstack/salt/salt/modules/glusterfs.py/_iter