mirror of https://github.com/MISP/misp-modules
fix: Making pep8 happy
parent
22d786e0f7
commit
fe1987101d
|
@ -85,8 +85,8 @@ class CsvParser():
|
||||||
return {'success': 1}
|
return {'success': 1}
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
#### Parsing csv data with MISP fields, ####
|
# Parsing csv data with MISP fields, #
|
||||||
#### but a custom header ####
|
# but a custom header #
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
def __build_misp_event(self, attribute_indexes, object_indexes):
|
def __build_misp_event(self, attribute_indexes, object_indexes):
|
||||||
|
@ -116,9 +116,9 @@ class CsvParser():
|
||||||
self.misp_event.add_attribute(**attribute)
|
self.misp_event.add_attribute(**attribute)
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
#### Parsing csv data containing fields that are not ####
|
# Parsing csv data containing fields that are not #
|
||||||
#### MISP attributes or objects standard fields ####
|
# MISP attributes or objects standard fields #
|
||||||
#### (but should be MISP attribute types!!) ####
|
# (but should be MISP attribute types!!) #
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
def __parse_external_csv(self, attribute_indexes, types_indexes):
|
def __parse_external_csv(self, attribute_indexes, types_indexes):
|
||||||
|
@ -139,7 +139,7 @@ class CsvParser():
|
||||||
self.misp_event.add_attribute(**{'type': self.header[index], 'value': line[index]})
|
self.misp_event.add_attribute(**{'type': self.header[index], 'value': line[index]})
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
#### Parsing standard MISP csv format ####
|
# Parsing standard MISP csv format #
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
def __parse_misp_csv(self):
|
def __parse_misp_csv(self):
|
||||||
|
@ -162,7 +162,7 @@ class CsvParser():
|
||||||
self.misp_event.add_object(**misp_object)
|
self.misp_event.add_object(**misp_object)
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
#### Utility functions ####
|
# Utility functions #
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
def __create_attribute_with_ids(self, line, indexes):
|
def __create_attribute_with_ids(self, line, indexes):
|
||||||
|
|
Loading…
Reference in New Issue