##// END OF EJS Templates
Don't clear input if InputTransformer raises SyntaxError.
Thomas Kluyver -
Show More
@@ -545,8 +545,8 b' class TerminalInteractiveShell(InteractiveShell):'
545 545 self.input_splitter.push(line)
546 546 more = self.input_splitter.push_accepts_more()
547 547 except SyntaxError:
548 self.showsyntaxerror()
549 self.input_splitter.reset()
548 # Run the code directly - run_cell takes care of displaying
549 # the exception.
550 550 more = False
551 551 if (self.SyntaxTB.last_syntax_error and
552 552 self.autoedit_syntax):
General Comments 0
You need to be logged in to leave comments. Login now