1
0
forked from VimPlug/jedi

fix a problem with python3

This commit is contained in:
David Halter
2012-12-09 19:40:30 +01:00
parent a012880c0c
commit 830f50e314
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -192,7 +192,7 @@ class Completion(BaseDefinition):
return [self]
self._followed_definitions = \
[BaseDefinition(d, start_pos=None) for d in defs]
[BaseDefinition(d, d.start_pos) for d in defs]
evaluate.clear_caches()
return self._followed_definitions
+1 -1
View File
@@ -462,7 +462,7 @@ def check_flow_information(flow, search_name, pos):
result = []
if isinstance(flow, parsing.Scope) and not result:
for ass in reversed(flow.asserts):
if ass.start_pos > pos:
if pos is None or ass.start_pos > pos:
continue
result = check_statement_information(ass, search_name)
if result: