All tests except the Interpreter tests are working again.

This commit is contained in:
Dave Halter
2016-06-22 00:27:21 +02:00
parent 8e67facecc
commit 6fec29d778
2 changed files with 3 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ from collections import namedtuple
from jedi import common
from jedi.evaluate import imports
from jedi.evaluate.helpers import deep_ast_copy, call_of_leaf
from jedi.evaluate.helpers import call_of_leaf
from jedi import parser
from jedi.parser import tokenize, token

View File

@@ -532,7 +532,8 @@ class FastTokenizer(object):
self._parentheses_level = 0
# We need to simulate a newline before the indent, because the
# open parentheses ignored them.
previous_type = NEWLINE
if re.search('\n\s*', prefix):
previous_type = NEWLINE
# Parentheses ignore the indentation rules. The other three stand for
# new lines.