People bitch about indentation in Python. But in this case it would have prevented the bug!
Of course Python doesn't even have a goto, so the code would have needed to be structured differently to start with.
If I were a betting man I'd wager that this bug wasn't really an accident. It would be really interesting to check commit logs to see the history.