def match(self, node):
        u"""
        Since the tree needs to be fixed once and only once if and only if it
        matches, we can start discarding matches after the first.
        """
        if node.type == self.syms.term:
            div_idx = find_division(node)
            if div_idx is not False:
                # if expr1 or expr2 are obviously floats, we don't need to wrap in
                # old_div, as the behavior of division between any number and a float
                # should be the same in 2 or 3
                if not is_floaty(node, div_idx):
                    return clone_div_operands(node, div_idx)
        return False
def match ( self , node ) : if node . type == self . syms . term : div_idx = find_division ( node ) if div_idx is not False : if not is_floaty ( node , div_idx ) : return clone_div_operands ( node , div_idx ) return False
u"""
        Since the tree needs to be fixed once and only once if and only if it
        matches, we can start discarding matches after the first.