MCPcopy Create free account
hub / github.com/LUX-Core/lux / __add__

Method __add__

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

Source from the content-addressed store, hash-verified

682 return other
683
684 def __add__(self, other):
685 # Do the coercion outside of the try block so that errors in it are
686 # noticed.
687 other = self.__coerce_instance(other)
688
689 try:
690 # bytes.__add__ always returns bytes instances unfortunately
691 return CScript(super(CScript, self).__add__(other))
692 except TypeError:
693 raise TypeError('Can not add a %r instance to a CScript' % other.__class__)
694
695 def join(self, iterable):
696 # 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