From 77db21cf181034a7569b60a85c13771e1773cad0 Mon Sep 17 00:00:00 2001 From: chrisr3d Date: Tue, 7 May 2019 09:37:21 +0200 Subject: [PATCH] fix: Making pep8 happy --- misp_modules/modules/import_mod/csvimport.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/misp_modules/modules/import_mod/csvimport.py b/misp_modules/modules/import_mod/csvimport.py index fd2f27b..5d7408c 100644 --- a/misp_modules/modules/import_mod/csvimport.py +++ b/misp_modules/modules/import_mod/csvimport.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -from collections import defaultdict from pymisp import MISPEvent, MISPObject from pymisp import __path__ as pymisp_path import csv @@ -7,7 +6,6 @@ import io import json import os import base64 -import pymisp misperrors = {'error': 'Error'} moduleinfo = {'version': '0.1', 'author': 'Christian Studer', @@ -196,7 +194,7 @@ class CsvParser(): return list2pop, misp, list(reversed(head)) def finalize_results(self): - event=json.loads(self.misp_event.to_json())['Event'] + event = json.loads(self.misp_event.to_json())['Event'] self.results = {key: event[key] for key in ('Attribute', 'Object') if (key in event and event[key])}