Show More
@@ -631,10 +631,6 class IPythonInputSplitter(InputSplitter): | |||
|
631 | 631 | if not lines_list: |
|
632 | 632 | lines_list = [''] |
|
633 | 633 | |
|
634 | # interpet trailing newline as a blank line | |
|
635 | if lines.endswith('\n'): | |
|
636 | lines_list += [''] | |
|
637 | ||
|
638 | 634 | # Store raw source before applying any transformations to it. Note |
|
639 | 635 | # that this must be done *after* the reset() call that would otherwise |
|
640 | 636 | # flush the buffer. |
@@ -195,7 +195,7 class TerminalInteractiveShell(InteractiveShell): | |||
|
195 | 195 | b.newline() |
|
196 | 196 | return |
|
197 | 197 | |
|
198 | status, indent = self.input_splitter.check_complete(d.text) | |
|
198 | status, indent = self.input_splitter.check_complete(d.text + '\n') | |
|
199 | 199 | |
|
200 | 200 | if (status != 'incomplete') and b.accept_action.is_returnable: |
|
201 | 201 | b.accept_action.validate_and_handle(event.cli, b) |
General Comments 0
You need to be logged in to leave comments.
Login now