From 12766afd0c7fc18d68bafb726df9ae301b51fafb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Fri, 3 Jan 2020 15:42:41 +0100 Subject: [PATCH] fix: et2misp was python2 only --- examples/et2misp.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/et2misp.py b/examples/et2misp.py index 495eeb7..3631ce4 100755 --- a/examples/et2misp.py +++ b/examples/et2misp.py @@ -71,7 +71,7 @@ def update_et_event(name): for k,v in et_attr.items(): r = mymisp.delete_attribute(v) if r.get('errors'): - print "Error deleting attribute {} ({}): {}\n".format(v,k,r['errors']) + print("Error deleting attribute {} ({}): {}\n".format(v,k,r['errors'])) # Weed out ips already in the MISP event for k,v in et_ips.items(): @@ -102,9 +102,9 @@ def update_et_event(name): def echeck(r, eid=None): if r.get('errors'): if eid: - print "Processing event {} failed: {}".format(eid, r['errors']) + print("Processing event {} failed: {}".format(eid, r['errors'])) else: - print r['errors'] + print(r['errors']) sys.exit(1) if __name__ == '__main__':