mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 22:44:27 +08:00
python 3 full compatibility
This commit is contained in:
@@ -146,7 +146,10 @@ class Parser(CachedModule):
|
||||
|
||||
if not self.path:
|
||||
try:
|
||||
f = open(os.path.sep.join(['mixin', self.name]) + '.py')
|
||||
name = self.name
|
||||
if name == '__builtin__' and sys.hexversion < 0x03000000:
|
||||
name = 'builtins'
|
||||
f = open(os.path.sep.join(['mixin', name]) + '.py')
|
||||
except IOError:
|
||||
return {}
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user