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

Method coerce_iterable

qa/rpc-tests/test_framework/script.py:691–693  ·  view source on GitHub ↗
(iterable)

Source from the content-addressed store, hash-verified

689 return super(CScript, cls).__new__(cls, value)
690 else:
691 def coerce_iterable(iterable):
692 for instance in iterable:
693 yield cls.__coerce_instance(instance)
694 # Annoyingly on both python2 and python3 bytes.join() always
695 # returns a bytes instance even when subclassed.
696 return super(CScript, cls).__new__(cls, b''.join(coerce_iterable(value)))

Callers

nothing calls this directly

Calls 1

__coerce_instanceMethod · 0.80

Tested by

no test coverage detected