summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjortel <devnull@localhost>2011-08-12 15:36:46 +0000
committerjortel <devnull@localhost>2011-08-12 15:36:46 +0000
commit509667150c32bca2314152c6de2ab078a2f831d5 (patch)
treea48be3310f1274f191009f4b4934eccf8b75c32b
parent9cedf7789f55eda5289ac8ec00c858549fa4cfac (diff)
downloadsuds-509667150c32bca2314152c6de2ab078a2f831d5.tar.gz
Don't add prefix (None) to the prefixes dict.
-rw-r--r--suds/mx/literal.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/suds/mx/literal.py b/suds/mx/literal.py
index 937ad8e..1c5fbb0 100644
--- a/suds/mx/literal.py
+++ b/suds/mx/literal.py
@@ -145,7 +145,8 @@ class Typed(Core):
ns = content.type.namespace()
if content.type.form_qualified:
node = Element(content.tag, ns=ns)
- node.addPrefix(ns[0], ns[1])
+ if ns[0]:
+ node.addPrefix(ns[0], ns[1])
else:
node = Element(content.tag)
self.encode(node, content)