summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream/matcher
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2013-04-01 20:57:16 -0700
committerLance Stout <lancestout@gmail.com>2013-04-01 20:57:16 -0700
commit7ac75de19df11ab992bd3d1a60b0154101dce655 (patch)
treeace762e6e2b85c289b1a11c61af85b1197ffabae /sleekxmpp/xmlstream/matcher
parent0a2737dc77709daa0196340368b7ffbfaf71f641 (diff)
downloadslixmpp-7ac75de19df11ab992bd3d1a60b0154101dce655.tar.gz
slixmpp-7ac75de19df11ab992bd3d1a60b0154101dce655.tar.bz2
slixmpp-7ac75de19df11ab992bd3d1a60b0154101dce655.tar.xz
slixmpp-7ac75de19df11ab992bd3d1a60b0154101dce655.zip
Make XMLMasks match properly for components.
Diffstat (limited to 'sleekxmpp/xmlstream/matcher')
-rw-r--r--sleekxmpp/xmlstream/matcher/xmlmask.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sleekxmpp/xmlstream/matcher/xmlmask.py b/sleekxmpp/xmlstream/matcher/xmlmask.py
index cb202448..56f728e1 100644
--- a/sleekxmpp/xmlstream/matcher/xmlmask.py
+++ b/sleekxmpp/xmlstream/matcher/xmlmask.py
@@ -37,11 +37,11 @@ class MatchXMLMask(MatcherBase):
object or XML string to use as a mask.
"""
- def __init__(self, criteria):
+ def __init__(self, criteria, default_ns='jabber:client'):
MatcherBase.__init__(self, criteria)
if isinstance(criteria, str):
self._criteria = ET.fromstring(self._criteria)
- self.default_ns = 'jabber:client'
+ self.default_ns = default_ns
def setDefaultNS(self, ns):
"""Set the default namespace to use during comparisons.