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