def _parse_version(text):
 (major, major2, minor) = VERSION_RE.search(text).groups()
 try:
  return (int(major), int(major2), int(minor))
 except (ValueError, TypeError):
  return (int(major), int(major2), None)

def _parse_version ( text ) : ( major , major2 , minor ) = VERSION_RE . search ( text ) . groups ( ) try : return ( int ( major ) , int ( major2 ) , int ( minor ) ) except ( ValueError , TypeError ) : return ( int ( major ) , int ( major2 ) , None )
internal parsing method .