diff options
author | Nathan Fritz <fritzy@netflint.net> | 2010-01-08 06:03:02 +0000 |
---|---|---|
committer | Nathan Fritz <fritzy@netflint.net> | 2010-01-08 06:03:02 +0000 |
commit | a8ff3586d3852fc70b1932a579cf8a28ce920d5c (patch) | |
tree | 1422863339fedaf3e0d5039dad0048cf2b677338 /sleekxmpp/xmlstream/matcher | |
parent | 0af468b435a3c24792f8d70ef802193ff08f26af (diff) | |
download | slixmpp-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.py | 2 |
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: |