1
0
forked from VimPlug/jedi

Don't use python_version directly on evaluator anymore

This commit is contained in:
Dave Halter
2017-12-28 01:44:59 +01:00
parent 31f1913b07
commit 6b6795c40c
3 changed files with 5 additions and 4 deletions

View File

@@ -136,7 +136,7 @@ def builtins_next(evaluator, iterators, defaults):
TODO this function is currently not used. It's a stab at implementing next
in a different way than fake objects. This would be a bit more flexible.
"""
if evaluator.python_version[0] == 2:
if evaluator.environment.version_info.major == 2:
name = 'next'
else:
name = '__next__'