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

Method print_collection

suds/sudsobject.py:356–368  ·  view source on GitHub ↗

print collection using the specified indent (n) and newline (nl).

(self, c, h, n)

Source from the content-addressed store, hash-verified

354 return ''.join(s)
355
356 def print_collection(self, c, h, n):
357 """print collection using the specified indent (n) and newline (nl)."""
358 if c in h:
359 return '[]...'
360 h.append(c)
361 s = []
362 for item in c:
363 s.append('\n')
364 s.append(self.indent(n))
365 s.append(self.process(item, h, n-2))
366 s.append(',')
367 h.pop()
368 return ''.join(s)
369
370 def unwrap(self, d, item):
371 """ translate (unwrap) using an optional wrapper function """

Callers 1

processMethod · 0.95

Calls 4

indentMethod · 0.95
processMethod · 0.95
appendMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected