parameters: (version)
return_statement: return match.group()
docstring: Extracts the short version ("x.y.z") from 'version'.
docstring_summary: Extracts the short version ("x.y.z") from 'version'.
docstring_tokens: Extracts the short version ( x . y . z ) from version .
function: def get_short_version(version):
      """ Extracts the short version ("x.y.z") from 'version'.
      """
      match = re.match('^(\d+(?:\.\d+){2})', version)
      if not match:
          raise Error('invalid version')
      return match.group()
function_tokens: def get_short_version ( version ) : match = re . match ( '^(\d+(?:\.\d+){2})' , version ) if not match : raise Error ( 'invalid version' ) return match . group ( )