(seq, follow_seq=True)
return seq
Remove all conditional jumps.

        :param SequenceNode seq:    The SequenceNode instance to handle.
        :return:                    A processed SequenceNode.
Remove all conditional jumps.
Remove all conditional jumps .
def _remove_conditional_jumps(seq, follow_seq=True):
        """
        Remove all conditional jumps.

        :param SequenceNode seq:    The SequenceNode instance to handle.
        :return:                    A processed SequenceNode.
        """

        def _handle_Sequence(node, **kwargs):
            if not follow_seq and node is not seq:
                return None
            return walker._handle_Sequence(node, **kwargs)


        handlers = {
            SequenceNode: _handle_Sequence,
            ailment.Block: Structurer._remove_conditional_jumps_from_block,
        }

        walker = SequenceWalker(handlers=handlers)
        walker.walk(seq)

        return seq
def _remove_conditional_jumps ( seq , follow_seq = True ) : def _handle_Sequence ( node , * * kwargs ) : if not follow_seq and node is not seq : return None return walker . _handle_Sequence ( node , * * kwargs ) handlers = { SequenceNode : _handle_Sequence , ailment . Block : Structurer . _remove_conditional_jumps_from_block , } walker = SequenceWalker ( handlers = handlers ) walker . walk ( seq ) return seq