def get_cve_list_from_file(filename): output = TextParser.read_file_with_cves(filename) matches = [] not_analyzed = [] #błedy co się nie udało # TODO: logger for line in output: try: match = TextParser.__find_cve_code(line) if match: matches.append(match) except BaseException as ex: not_analyzed.append(line) # TODO: logger flat_list = Common.list_flattening(matches) return TextParser.get_unique_list(flat_list)
def certificate_policies_cps(self): cps = [ i.get("cps") for i in self.ceritificate_policies if i.get("cps") ] return Common.list_flattening(cps) # moze byc pusta lista