(version_string)
Returns a 2-tuple for the current version of Java installed.

  Args:
    version_string: String of the Java version (e.g. '1.7.2-ea').

  Returns:
    The major and minor versions, as a 2-tuple (e.g. (1, 7)).
Returns a 2-tuple for the current version of Java installed.
Returns a 2 - tuple for the current version of Java installed .
def _ParseJavaVersion(version_string):
  """Returns a 2-tuple for the current version of Java installed.

  Args:
    version_string: String of the Java version (e.g. '1.7.2-ea').

  Returns:
    The major and minor versions, as a 2-tuple (e.g. (1, 7)).
  """
  match = _VERSION_REGEX.search(version_string)
  if match:
    version = tuple(int(x or 0) for x in match.groups())
    assert len(version) == 2
    return version
def _ParseJavaVersion ( version_string ) : match = _VERSION_REGEX . search ( version_string ) if match : version = tuple ( int ( x or 0 ) for x in match . groups ( ) ) assert len ( version ) == 2 return version