##// END OF EJS Templates
Use tokenize.NL and tokenize.NEWLINE in the check_complete logic...
Tony Fast -
Show More
@@ -653,6 +653,9 b' class TransformerManager:'
653 if res is None:
653 if res is None:
654 return 'incomplete', find_last_indent(lines)
654 return 'incomplete', find_last_indent(lines)
655
655
656 if toks_last_line[-2].type in {tokenize.NEWLINE, tokenize.NL}:
657 return 'complete', None
658
656 if toks_last_line[-2].type == tokenize.DEDENT:
659 if toks_last_line[-2].type == tokenize.DEDENT:
657 if not lines[-1].endswith('\n'):
660 if not lines[-1].endswith('\n'):
658 return 'incomplete', find_last_indent(lines)
661 return 'incomplete', find_last_indent(lines)
General Comments 0
You need to be logged in to leave comments. Login now