def contains(self, app):
    """Returns whether the app (of the same version) is in the registry"""
    try:
      existing = self._apps[app.name]
      return existing.version == app.version
    except __HOLE__:
      return False
dataset/ETHPy150Open cloudera/hue/tools/app_reg/registry.py/AppRegistry.contains