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

Method __add__

test/functional/test_framework/script.py:417–426  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

415 return other
416
417 def __add__(self, other):
418 # Do the coercion outside of the try block so that errors in it are
419 # noticed.
420 other = self.__coerce_instance(other)
421
422 try:
423 # bytes.__add__ always returns bytes instances unfortunately
424 return CScript(super(CScript, self).__add__(other))
425 except TypeError:
426 raise TypeError('Can not add a %r instance to a CScript' % other.__class__)
427
428 def join(self, iterable):
429 # 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