##// END OF EJS Templates
Remove a condition from check_complete...
Tony Fast -
Show More
@@ -644,7 +644,6 class TransformerManager:
644 and tokens_by_line[-1][-1].type in newline_types:
644 and tokens_by_line[-1][-1].type in newline_types:
645 tokens_by_line.pop()
645 tokens_by_line.pop()
646
646
647
648 while tokens_by_line[-1] and tokens_by_line[-1][-1].type in newline_types:
647 while tokens_by_line[-1] and tokens_by_line[-1][-1].type in newline_types:
649 tokens_by_line[-1].pop()
648 tokens_by_line[-1].pop()
650
649
@@ -681,9 +680,6 class TransformerManager:
681 return 'complete', None
680 return 'complete', None
682 return 'incomplete', find_last_indent(lines)
681 return 'incomplete', find_last_indent(lines)
683
682
684 if len(tokens_by_line[-1]) <= 1:
685 return 'incomplete', find_last_indent(lines)
686
687 # If there's a blank line at the end, assume we're ready to execute
683 # If there's a blank line at the end, assume we're ready to execute
688 if not lines[-1].strip():
684 if not lines[-1].strip():
689 return 'complete', None
685 return 'complete', None
General Comments 0
You need to be logged in to leave comments. Login now