mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
merge and a few changes for the SyntaxError problem with mixin in (pip installation). -> fixes #79, also important for #82, #81, davidhalter/jedi-vim/issues/41, solution from #65
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
include README.rst
|
||||
include LICENSE.txt
|
||||
include AUTHORS.txt
|
||||
include jedi/mixin/*.py
|
||||
include jedi/mixin/*.pym
|
||||
recursive-exclude * *.pyc
|
||||
|
||||
@@ -200,7 +200,7 @@ class Parser(CachedModule):
|
||||
if name == '__builtin__' and not is_py3k:
|
||||
name = 'builtins'
|
||||
path = os.path.dirname(os.path.abspath(__file__))
|
||||
with open(os.path.sep.join([path, 'mixin', name]) + '.py') as f:
|
||||
with open(os.path.sep.join([path, 'mixin', name]) + '.pym') as f:
|
||||
s = f.read()
|
||||
except IOError:
|
||||
return {}
|
||||
|
||||
Reference in New Issue
Block a user