Remove a useless lambda

This commit is contained in:
mathieui 2017-02-13 19:45:28 +01:00
parent 5e40b63031
commit 747529845e

View file

@ -47,7 +47,7 @@ class MatchJID(object):
return '%s%s%s' % (self.dest, ': ' if self.dest else '', self.jid)
MATCHERS_MAPPINGS = {
MatchJID: ('JID', lambda obj: repr(obj)),
MatchJID: ('JID', repr),
matcher.MatcherId: ('ID', lambda obj: obj._criteria),
matcher.MatchXMLMask: ('XMLMask', lambda obj: tostring(obj._criteria)),
matcher.MatchXPath: ('XPath', lambda obj: obj._criteria)