MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / merge

Method merge

suds/xsd/schema.py:131–143  ·  view source on GitHub ↗

Merge the contained schemas into one. @return: The merged schema. @rtype: L{Schema}

(self)

Source from the content-addressed store, hash-verified

129 return self.namespaces.get(ns[1])
130
131 def merge(self):
132 """
133 Merge the contained schemas into one.
134 @return: The merged schema.
135 @rtype: L{Schema}
136 """
137 if len(self):
138 schema = self.children[0]
139 for s in self.children[1:]:
140 schema.merge(s)
141 return schema
142 else:
143 return None
144
145 def __len__(self):
146 return len(self.children)

Callers 1

loadMethod · 0.95

Calls 1

mergeMethod · 0.45

Tested by

no test coverage detected