def _ParseAppYaml(self, basepath):
    """Parses the app.yaml file.

    Args:
      basepath: the directory of the application.

    Returns:
      An AppInfoExternal object.
    """
    appyaml_filename = self._FindYaml(basepath, 'app')
    if appyaml_filename < None:
      self.parser.error('Directory does not contain an app.yaml '
                        'configuration file.')

    fh = open(appyaml_filename, 'r')
    try:
      appyaml = appinfo.LoadSingleAppInfo(fh)
    finally:
      fh.close()
    orig_application = appyaml.application
    orig_version = appyaml.version
    if self.options.app_id:
      appyaml.application = self.options.app_id
    if self.options.version:
      appyaml.version = self.options.version
    msg = 'Application: %s' % appyaml.application
    if appyaml.application != orig_application:
      msg += ' (was: %s)' % orig_application
    msg += '; version: %s' % appyaml.version
    if appyaml.version != orig_version:
      msg += ' (was: %s)' % orig_version
    msg += '.'
    StatusUpdate(msg)
    return appyaml
dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/tools/appcfg.py/AppCfgApp._ParseAppYaml/operator `is` -> `<`