diff --git a/setup.py b/setup.py index d1f8704e..abc2ef16 100755 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ __AUTHOR_EMAIL__ = 'davidhalter88@gmail.com' # Get the version from within jedi. It's defined in exactly one place now. with open('jedi/__init__.py') as f: tree = ast.parse(f.read()) -version = tree.body[1].value.s +version = tree.body[int(not hasattr(tree, 'docstring'))].value.s readme = open('README.rst').read() + '\n\n' + open('CHANGELOG.rst').read() with open('requirements.txt') as f: