def _check_versions(current_release):
 feconf_changed_version = []
 git_show_cmd = (GIT_CMD_SHOW_FORMAT_STRING % current_release)
 old_feconf = _run_cmd(git_show_cmd)
 with open('feconf.py', 'r') as feconf:
  new_feconf = feconf.read()
 for variable in FECONF_VAR_NAMES:
  old_version = re.findall((VERSION_RE_FORMAT_STRING % variable), old_feconf)[0]
  new_version = re.findall((VERSION_RE_FORMAT_STRING % variable), new_feconf)[0]
  if (old_version != new_version):
   feconf_changed_version.append(variable)
 return feconf_changed_version

def _check_versions ( current_release ) : feconf_changed_version = [ ] git_show_cmd = ( GIT_CMD_SHOW_FORMAT_STRING % current_release ) old_feconf = _run_cmd ( git_show_cmd ) with open ( 'feconf.py' , 'r' ) as feconf : new_feconf = feconf . read ( ) for variable in FECONF_VAR_NAMES : old_version = re . findall ( ( VERSION_RE_FORMAT_STRING % variable ) , old_feconf ) [ 0 ] new_version = re . findall ( ( VERSION_RE_FORMAT_STRING % variable ) , new_feconf ) [ 0 ] if ( old_version != new_version ) : feconf_changed_version . append ( variable ) return feconf_changed_version
checks if the versions for the exploration or collection schemas have changed .