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

Method coerce_iterable

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

Source from the content-addressed store, hash-verified

434 return super(CScript, cls).__new__(cls, value)
435 else:
436 def coerce_iterable(iterable):
437 for instance in iterable:
438 yield cls.__coerce_instance(instance)
439 # Annoyingly on both python2 and python3 bytes.join() always
440 # returns a bytes instance even when subclassed.
441 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