##// 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 self.input_splitter.push(line)
545 self.input_splitter.push(line)
546 more = self.input_splitter.push_accepts_more()
546 more = self.input_splitter.push_accepts_more()
547 except SyntaxError:
547 except SyntaxError:
548 self.showsyntaxerror()
548 # Run the code directly - run_cell takes care of displaying
549 self.input_splitter.reset()
549 # the exception.
550 more = False
550 more = False
551 if (self.SyntaxTB.last_syntax_error and
551 if (self.SyntaxTB.last_syntax_error and
552 self.autoedit_syntax):
552 self.autoedit_syntax):
General Comments 0
You need to be logged in to leave comments. Login now