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

Method __add__

qa/rpc-tests/test_framework/script.py:672–681  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

670 return other
671
672 def __add__(self, other):
673 # Do the coercion outside of the try block so that errors in it are
674 # noticed.
675 other = self.__coerce_instance(other)
676
677 try:
678 # bytes.__add__ always returns bytes instances unfortunately
679 return CScript(super(CScript, self).__add__(other))
680 except TypeError:
681 raise TypeError('Can not add a %r instance to a CScript' % other.__class__)
682
683 def join(self, iterable):
684 # join makes no sense for a CScript()

Callers

nothing calls this directly

Calls 2

__coerce_instanceMethod · 0.95
CScriptClass · 0.70

Tested by

no test coverage detected