From 802fc0f20ebbabc655765d40918590e5f170c9f1 Mon Sep 17 00:00:00 2001 From: Nicolas Bareil Date: Thu, 1 Dec 2016 10:59:30 +0100 Subject: [PATCH] python3 does not like lambda (x,y) syntax --- pymisp/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymisp/api.py b/pymisp/api.py index 55d8852..77acb0a 100644 --- a/pymisp/api.py +++ b/pymisp/api.py @@ -477,7 +477,7 @@ class PyMISP(object): return self.add_named_attribute(event, 'domain|ip', composed, category, to_ids, comment, distribution, proposal) def add_domains_ips(self, event, domain_ips, category='Network activity', to_ids=True, comment=None, distribution=None, proposal=False): - composed = map(lambda (x,y): '%s|%s' % (x, y), domain_ips.items()) + composed = map(lambda x: '%s|%s' % (x[0], x[1]), domain_ips.items()) return self.add_named_attribute(event, 'domain|ip', composed, category, to_ids, comment, distribution, proposal) def add_url(self, event, url, category='Network activity', to_ids=True, comment=None, distribution=None, proposal=False):