moved seesmic branch to trunk
This commit is contained in:
11
sleekxmpp/xmlstream/matcher/xpath.py
Normal file
11
sleekxmpp/xmlstream/matcher/xpath.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from . import base
|
||||
from xml.etree import cElementTree
|
||||
|
||||
class MatchXPath(base.MatcherBase):
|
||||
|
||||
def match(self, xml):
|
||||
x = cElementTree.Element('x')
|
||||
x.append(xml)
|
||||
if x.find(self._criteria) is not None:
|
||||
return True
|
||||
return False
|
||||
Reference in New Issue
Block a user