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

Method getNamespaces

suds/sax/element.py:1023–1034  ·  view source on GitHub ↗

Get the I{unique} set of namespaces referenced in the branch. @return: A set of namespaces. @rtype: set

(self)

Source from the content-addressed store, hash-verified

1021 self.prefixes = self.genPrefixes()
1022
1023 def getNamespaces(self):
1024 """
1025 Get the I{unique} set of namespaces referenced in the branch.
1026 @return: A set of namespaces.
1027 @rtype: set
1028 """
1029 s = set()
1030 for n in self.branch + self.node.ancestors():
1031 if self.permit(n.expns):
1032 s.add(n.expns)
1033 s = s.union(self.pset(n))
1034 return s
1035
1036 def pset(self, n):
1037 """

Callers 1

__init__Method · 0.95

Calls 5

permitMethod · 0.95
psetMethod · 0.95
ancestorsMethod · 0.80
setFunction · 0.50
addMethod · 0.45

Tested by

no test coverage detected