forked from VimPlug/jedi
Versions should be PEP440 compatible, fixes #521.
This commit is contained in:
@@ -34,7 +34,7 @@ As you see Jedi is pretty simple and allows you to concentrate on writing a
|
|||||||
good text editor, while still having very good IDE features for Python.
|
good text editor, while still having very good IDE features for Python.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
__version__ = '0.8.1-final0'
|
__version__ = '0.8.1'
|
||||||
|
|
||||||
from jedi.api import Script, Interpreter, NotFoundError, set_debug_function
|
from jedi.api import Script, Interpreter, NotFoundError, set_debug_function
|
||||||
from jedi.api import preload_module, defined_names
|
from jedi.api import preload_module, defined_names
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ def version_info():
|
|||||||
Returns a namedtuple of Jedi's version, similar to Python's
|
Returns a namedtuple of Jedi's version, similar to Python's
|
||||||
``sys.version_info``.
|
``sys.version_info``.
|
||||||
"""
|
"""
|
||||||
Version = namedtuple('Version', 'major, minor, micro, releaselevel, serial')
|
Version = namedtuple('Version', 'major, minor, micro')
|
||||||
from jedi import __version__
|
from jedi import __version__
|
||||||
tupl = re.findall('[a-z]+|\d+', __version__)
|
tupl = re.findall('[a-z]+|\d+', __version__)
|
||||||
return Version(*[x if i == 3 else int(x) for i, x in enumerate(tupl)])
|
return Version(*[x if i == 3 else int(x) for i, x in enumerate(tupl)])
|
||||||
|
|||||||
Reference in New Issue
Block a user