mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-24 03:00:15 +00:00
fixed matcher bug introduced with stanza matching
This commit is contained in:
parent
e39a2395d7
commit
7a9a86af3d
2 changed files with 4 additions and 2 deletions
|
@ -16,6 +16,7 @@ class MatchXMLMask(base.MatcherBase):
|
|||
self.default_ns = ns
|
||||
|
||||
def match(self, xml):
|
||||
if hasattr(xml, 'xml'):
|
||||
xml = xml.xml
|
||||
return self.maskcmp(xml, self._criteria, True)
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ ignore_ns = False
|
|||
class MatchXPath(base.MatcherBase):
|
||||
|
||||
def match(self, xml):
|
||||
if hasattr(xml, 'xml'):
|
||||
xml = xml.xml
|
||||
x = cElementTree.Element('x')
|
||||
x.append(xml)
|
||||
|
|
Loading…
Reference in a new issue