MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / coerce_iterable

Method coerce_iterable

test/functional/test_framework/script.py:473–475  ·  view source on GitHub ↗
(iterable)

Source from the content-addressed store, hash-verified

471 return super().__new__(cls, value)
472 else:
473 def coerce_iterable(iterable):
474 for instance in iterable:
475 yield cls.__coerce_instance(instance)
476 # Annoyingly on both python2 and python3 bytes.join() always
477 # returns a bytes instance even when subclassed.
478 return super().__new__(cls, b''.join(coerce_iterable(value)))

Callers

nothing calls this directly

Calls 1

__coerce_instanceMethod · 0.80

Tested by

no test coverage detected