1
0
forked from VimPlug/jedi

fix a little import problem in regression tests

This commit is contained in:
David Halter
2012-12-31 12:36:33 +01:00
parent 806426898d
commit 17bec929bb
2 changed files with 4 additions and 2 deletions

View File

@@ -226,6 +226,7 @@ class FastParser(use_metaclass(CachedFastParser)):
parser_order = 0
for code_part in parts:
lines = code_part.count('\n')
# the parser is using additional newlines, therefore substract
if p is None or line_offset >= p.end_pos[0] - 2:
# check if code_part has already been parsed
h = hash(code_part)