python3 does not like lambda (x,y) syntax

pull/30/head
Nicolas Bareil 2016-12-01 10:59:30 +01:00
parent fff3a66d09
commit 802fc0f20e
1 changed files with 1 additions and 1 deletions

View File

@ -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):