Permalink
Browse files

Allow for soapenc array type without trailing [].

git-svn-id: http://svn.fedorahosted.org/svn/suds/trunk@697 0b8c961e-115e-4cb0-8d11-a7d6dae58e8c
  • Loading branch information...
1 parent d89eaf4 commit eddba1c01d471dd67e85616605338cb7af5dd87f jortel committed Sep 8, 2010
Showing with 5 additions and 2 deletions.
  1. +1 −1 suds/__init__.py
  2. +4 −1 suds/soaparray.py
View
@@ -27,7 +27,7 @@
#
__version__ = '0.4'
-__build__="GA R696-20100908"
+__build__="GA R697-20100908"
#
# Exceptions
View
@@ -39,7 +39,10 @@ def __init__(self, schema, root, aty):
@type aty: The value of wsdl:arrayType.
"""
SXAttribute.__init__(self, schema, root)
- self.aty = aty[:-2]
+ if aty.endswith('[]'):
+ self.aty = aty[:-2]
+ else:
+ self.aty = aty
def autoqualified(self):
aqs = SXAttribute.autoqualified(self)

0 comments on commit eddba1c

Please sign in to comment.