def _get_version(name, results):
    for line in salt.utils.itertools.split(results, '\n'):
        if not line:
            continue
        try:
            pkgname, pkgver = line.rsplit('-', 1)
        except ValueError:
            continue
        if pkgname == name:
            return pkgver
    return None
Constructor.
dataset/ETHPy150Open saltstack/salt/salt/modules/pkgng.py/_get_version--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/datastore/datastore_query.py/CompositeFilter.__init__