summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream/matcher
diff options
context:
space:
mode:
authorNathan Fritz <fritzy@netflint.net>2010-01-08 06:03:02 +0000
committerNathan Fritz <fritzy@netflint.net>2010-01-08 06:03:02 +0000
commita8ff3586d3852fc70b1932a579cf8a28ce920d5c (patch)
tree1422863339fedaf3e0d5039dad0048cf2b677338 /sleekxmpp/xmlstream/matcher
parent0af468b435a3c24792f8d70ef802193ff08f26af (diff)
downloadslixmpp-a8ff3586d3852fc70b1932a579cf8a28ce920d5c.tar.gz
slixmpp-a8ff3586d3852fc70b1932a579cf8a28ce920d5c.tar.bz2
slixmpp-a8ff3586d3852fc70b1932a579cf8a28ce920d5c.tar.xz
slixmpp-a8ff3586d3852fc70b1932a579cf8a28ce920d5c.zip
* python 2.6 compatibility
Diffstat (limited to 'sleekxmpp/xmlstream/matcher')
-rw-r--r--sleekxmpp/xmlstream/matcher/xmlmask.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/xmlstream/matcher/xmlmask.py b/sleekxmpp/xmlstream/matcher/xmlmask.py
index a1610489..e8e4df02 100644
--- a/sleekxmpp/xmlstream/matcher/xmlmask.py
+++ b/sleekxmpp/xmlstream/matcher/xmlmask.py
@@ -25,7 +25,7 @@ class MatchXMLMask(base.MatcherBase):
#TODO require namespaces
if source == None: #if element not found (happens during recursive check below)
return False
- if type(maskobj) == type(str()): #if the mask is a string, make it an xml obj
+ if not hasattr(maskobj, 'attrib'): #if the mask is a string, make it an xml obj
try:
maskobj = cElementTree.fromstring(maskobj)
except ExpatError: