fix: Making pep8 happy

features_csvimport
chrisr3d 2019-10-03 17:10:47 +02:00
parent 22d786e0f7
commit fe1987101d
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
1 changed files with 7 additions and 7 deletions

View File

@ -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):