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

Method refitNodes

suds/sax/element.py:1071–1080  ·  view source on GitHub ↗

Refit (normalize) all of the nodes in the branch.

(self)

Source from the content-addressed store, hash-verified

1069 self.refitMappings()
1070
1071 def refitNodes(self):
1072 """
1073 Refit (normalize) all of the nodes in the branch.
1074 """
1075 for n in self.branch:
1076 if n.prefix is not None:
1077 ns = n.namespace()
1078 if self.permit(ns):
1079 n.prefix = self.prefixes[ns[1]]
1080 self.refitAttrs(n)
1081
1082 def refitAttrs(self, n):
1083 """

Callers 1

refitMethod · 0.95

Calls 3

permitMethod · 0.95
refitAttrsMethod · 0.95
namespaceMethod · 0.45

Tested by

no test coverage detected