Skip to content

Commit

Permalink
make code python 3.4 compatible (#403)
Browse files Browse the repository at this point in the history
fixes #402
  • Loading branch information
dadokkio authored and nadouani committed Jan 9, 2019
1 parent 9d1b40b commit 6a5352b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion analyzers/Malwares/malwares_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6a5352b

Please sign in to comment.