1
0
forked from VimPlug/jedi

Fix the merge issues. Now async stuff should at least partially work

This commit is contained in:
Dave Halter
2018-02-19 01:35:37 +01:00
parent 8f4b68ae39
commit f1c2aef963
3 changed files with 13 additions and 24 deletions

View File

@@ -68,8 +68,12 @@ class FunctionContext(use_metaclass(CachedMetaClass, TreeContext)):
if is_coroutine:
if is_generator:
if self.evaluator.environment.version_info < (3, 6):
return NO_CONTEXTS
return ContextSet(iterable.AsyncGenerator(self.evaluator, function_execution))
else:
if self.evaluator.environment.version_info < (3, 5):
return NO_CONTEXTS
return ContextSet(iterable.Coroutine(self.evaluator, function_execution))
else:
if is_generator: