xmlclass/xsdschema.py
changeset 1765 ccf59c1f0b45
parent 1763 bcc07ff2362c
child 1767 c74815729afd
equal deleted inserted replaced
1764:d5df428640ff 1765:ccf59c1f0b45
   394         else:
   394         else:
   395             itemtypeinfos = typeinfos["itemType"]
   395             itemtypeinfos = typeinfos["itemType"]
   396 
   396 
   397         # Check that item type is a simple type
   397         # Check that item type is a simple type
   398         if itemtypeinfos["type"] != SIMPLETYPE:
   398         if itemtypeinfos["type"] != SIMPLETYPE:
   399             raise ValueError, "Item type given isn't a simpleType!"
   399             raise ValueError("Item type given isn't a simpleType!")
   400 
   400 
   401         simpleType["basename"] = "list"
   401         simpleType["basename"] = "list"
   402 
   402 
   403         # Check that derivation is allowed
   403         # Check that derivation is allowed
   404         if "final" in itemtypeinfos:
   404         if "final" in itemtypeinfos: