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}
################################################################################
#### Parsing csv data with MISP fields, ####
#### but a custom header ####
# Parsing csv data with MISP fields, #
# but a custom header #
################################################################################
def __build_misp_event(self, attribute_indexes, object_indexes):
@ -116,9 +116,9 @@ class CsvParser():
self.misp_event.add_attribute(**attribute)
################################################################################
#### Parsing csv data containing fields that are not ####
#### MISP attributes or objects standard fields ####
#### (but should be MISP attribute types!!) ####
# Parsing csv data containing fields that are not #
# MISP attributes or objects standard fields #
# (but should be MISP attribute types!!) #
################################################################################
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]})
################################################################################
#### Parsing standard MISP csv format ####
# Parsing standard MISP csv format #
################################################################################
def __parse_misp_csv(self):
@ -162,7 +162,7 @@ class CsvParser():
self.misp_event.add_object(**misp_object)
################################################################################
#### Utility functions ####
# Utility functions #
################################################################################
def __create_attribute_with_ids(self, line, indexes):