From 3007761a551dbea7097ec04b850a8da28e63f444 Mon Sep 17 00:00:00 2001 From: chrisr3d Date: Tue, 17 Dec 2019 16:31:53 +0100 Subject: [PATCH] fix: Making pep8 happy by having spaces around '+' operators --- misp_modules/modules/expansion/apiosintds.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/misp_modules/modules/expansion/apiosintds.py b/misp_modules/modules/expansion/apiosintds.py index 011cf6e8..ac0dfa4a 100644 --- a/misp_modules/modules/expansion/apiosintds.py +++ b/misp_modules/modules/expansion/apiosintds.py @@ -107,7 +107,7 @@ def apiosintParser(response, import_related_hashes): for key in response: for item in response[key]["items"]: if item["response"]: - comment = item["item"]+" IS listed by OSINT.digitalside.it. Date list: "+response[key]["list"]["date"] + comment = item["item"] + " IS listed by OSINT.digitalside.it. Date list: " + response[key]["list"]["date"] if key == "url": if "hashes" in item.keys(): if "sha256" in item["hashes"].keys(): @@ -124,16 +124,16 @@ def apiosintParser(response, import_related_hashes): if import_related_hashes: if "hashes" in urls.keys(): if "sha256" in urls["hashes"].keys(): - ret.append({"types": ["sha256"], "values": [urls["hashes"]["sha256"]], "comment": "Related to: "+itemToInclude}) + ret.append({"types": ["sha256"], "values": [urls["hashes"]["sha256"]], "comment": "Related to: " + itemToInclude}) if "sha1" in urls["hashes"].keys(): - ret.append({"types": ["sha1"], "values": [urls["hashes"]["sha1"]], "comment": "Related to: "+itemToInclude}) + ret.append({"types": ["sha1"], "values": [urls["hashes"]["sha1"]], "comment": "Related to: " + itemToInclude}) if "md5" in urls["hashes"].keys(): - ret.append({"types": ["md5"], "values": [urls["hashes"]["md5"]], "comment": "Related to: "+itemToInclude}) - ret.append({"types": ["url"], "values": [itemToInclude], "comment": "Related to: "+item["item"]}) + ret.append({"types": ["md5"], "values": [urls["hashes"]["md5"]], "comment": "Related to: " + itemToInclude}) + ret.append({"types": ["url"], "values": [itemToInclude], "comment": "Related to: " + item["item"]}) else: - ret.append({"types": ["url"], "values": [urls], "comment": "Related URL to: "+item["item"]}) + ret.append({"types": ["url"], "values": [urls], "comment": "Related URL to: " + item["item"]}) else: - comment = item["item"]+" IS NOT listed by OSINT.digitalside.it. Date list: "+response[key]["list"]["date"] + comment = item["item"] + " IS NOT listed by OSINT.digitalside.it. Date list: " + response[key]["list"]["date"] ret.append({"types": ["text"], "values": [comment]}) return ret