diff options
author | Lance Stout <lancestout@gmail.com> | 2013-01-20 15:43:02 -0800 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2013-01-20 15:43:02 -0800 |
commit | ccf7916257d6af6ec9fd76d4c4c438b7f9d8078c (patch) | |
tree | a4f84f95af01cb3f5ee0b004d65e900ff657b184 /sleekxmpp/xmlstream/stanzabase.py | |
parent | d86adfa1b164293562e8b86dae7a82755b95626d (diff) | |
download | slixmpp-ccf7916257d6af6ec9fd76d4c4c438b7f9d8078c.tar.gz slixmpp-ccf7916257d6af6ec9fd76d4c4c438b7f9d8078c.tar.bz2 slixmpp-ccf7916257d6af6ec9fd76d4c4c438b7f9d8078c.tar.xz slixmpp-ccf7916257d6af6ec9fd76d4c4c438b7f9d8078c.zip |
Allow for simplified XPath namespaces
Diffstat (limited to 'sleekxmpp/xmlstream/stanzabase.py')
-rw-r--r-- | sleekxmpp/xmlstream/stanzabase.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/xmlstream/stanzabase.py b/sleekxmpp/xmlstream/stanzabase.py index 122d7eb4..120373db 100644 --- a/sleekxmpp/xmlstream/stanzabase.py +++ b/sleekxmpp/xmlstream/stanzabase.py @@ -192,7 +192,7 @@ def fix_ns(xpath, split=False, propagate_ns=True, default_ns=''): for element in elements: if element: # Skip empty entry artifacts from splitting. - if propagate_ns: + if propagate_ns and element[0] != '*': tag = '{%s}%s' % (namespace, element) else: tag = element |