Revert the changes made in the ' if ' part to restore the original tree . i . e . , fix the right child of predecessor
else : NEW_LINE INDENT pre . right = None NEW_LINE yield current . data NEW_LINE current = current . right NEW_LINE DEDENT