From 6a5352bd5e5cf733e0549c2ea83a74818cdf061c Mon Sep 17 00:00:00 2001 From: Arcuri Davide Date: Wed, 9 Jan 2019 17:56:35 +0100 Subject: [PATCH] make code python 3.4 compatible (#403) fixes #402 --- analyzers/Malwares/malwares_api.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/analyzers/Malwares/malwares_api.py b/analyzers/Malwares/malwares_api.py index 6073c7582..896ccca35 100644 --- a/analyzers/Malwares/malwares_api.py +++ b/analyzers/Malwares/malwares_api.py @@ -56,7 +56,9 @@ def get_file_report(self, this_hash): ra = _return_response_and_status_code(response_additional) if ri['response_code'] == '1' and ra['response_code'] == '1': # both ok - response = dict(results={**ri['results'], **ra['results']}, response_code=1) + both = ri['results'].copy() + both.update(ra['results']) + response = dict(results=both, response_code=1) elif ri['response_code'] == '1' and ra['response_code'] == '0': # advance non exists but standard ok response = ri elif ri['response_code'] == '2': # main is still loading