(self, other)
return new_node
Merges this node with the other, returning a new node that spans the both.
Merges this node with the other, returning a new node that spans the both.
Merges this node with the other returning a new node that spans the both .
def merge(self, other):
        """
        Merges this node with the other, returning a new node that spans the both.
        """
        new_node = self.copy()
        new_node.size += other.size
        new_node.instruction_addrs += other.instruction_addrs
        # FIXME: byte_string should never be none, but it is sometimes
        # like, for example, patcherex test_cfg.py:test_fullcfg_properties
        if new_node.byte_string is None or other.byte_string is None:
            new_node.byte_string = None
        else:
            new_node.byte_string += other.byte_string
        return new_node
def merge ( self , other ) : new_node = self . copy ( ) new_node . size += other . size new_node . instruction_addrs += other . instruction_addrs # FIXME: byte_string should never be none, but it is sometimes # like, for example, patcherex test_cfg.py:test_fullcfg_properties if new_node . byte_string is None or other . byte_string is None : new_node . byte_string = None else : new_node . byte_string += other . byte_string return new_node