def _checkout(requestedVersion):
 if (currentTag() == requestedVersion):
  return requestedVersion
 if (requestedVersion not in _localVersions(forceCheck=True)):
  msg = _translate("Couldn't find version {} locally. Trying github...")
  logging.info(msg.format(requestedVersion))
  subprocess.check_output('git fetch github --tags'.split(), cwd=VERSIONSDIR)
  if (requestedVersion not in _localVersions(forceCheck=True)):
   msg = _translate('{} is not currently available.')
   logging.error(msg.format(requestedVersion))
   return ''
 cmd = ['git', 'checkout', requestedVersion]
 out = subprocess.check_output(cmd, stderr=subprocess.STDOUT, cwd=VERSIONSDIR)
 logging.debug(out)
 logging.exp(('Success:  ' + ' '.join(cmd)))
 return requestedVersion

def _checkout ( requestedVersion ) : if ( currentTag ( ) == requestedVersion ) : return requestedVersion if ( requestedVersion not in _localVersions ( forceCheck = True ) ) : msg = _translate ( "Couldn't find version {} locally. Trying github..." ) logging . info ( msg . format ( requestedVersion ) ) subprocess . check_output ( 'git fetch github --tags' . split ( ) , cwd = VERSIONSDIR ) if ( requestedVersion not in _localVersions ( forceCheck = True ) ) : msg = _translate ( '{} is not currently available.' ) logging . error ( msg . format ( requestedVersion ) ) return '' cmd = [ 'git' , 'checkout' , requestedVersion ] out = subprocess . check_output ( cmd , stderr = subprocess . STDOUT , cwd = VERSIONSDIR ) logging . debug ( out ) logging . exp ( ( 'Success:  ' + ' ' . join ( cmd ) ) ) return requestedVersion
look for a maj .