def version_exclude_prerelease(versions):
 output = []
 for version in versions:
  if (SemVer(semver_compat(version)).prerelease is not None):
   continue
  output.append(version)
 return output

def version_exclude_prerelease ( versions ) : output = [ ] for version in versions : if ( SemVer ( semver_compat ( version ) ) . prerelease is not None ) : continue output . append ( version ) return output
remove prerelease versions for a list of semver versions .