def _get_version(self, output): versions = re.findall("javac\ ([\d\._]*)", output) version = parse_java_version(versions) if not version: self.log.warning("Tool version parsing error: %s", output) return version