http://docs.python.org/2/tutorial/interpreter.html see section 2.1.2

Entering a blank line (just hit the return key) should end the continuation, cause the compound statement to be evaluated, and then bring you back to the normal prompt.