1
0
forked from VimPlug/jedi

fix problems with certain builtins (names were just stupid, like '_sqlite3.cpython-32mu' / python 2.5 may have an error more #84

This commit is contained in:
David Halter
2012-12-19 23:11:33 +01:00
parent 2ee09980eb
commit ce0aadc9a5
2 changed files with 4 additions and 1 deletions

View File

@@ -200,6 +200,9 @@ class Parser(CachedModule):
try:
name = self.name
# sometimes there are stupid endings like `_sqlite3.cpython-32mu`
name = re.sub(r'\..*', '', name)
if name == '__builtin__' and not is_py3k:
name = 'builtins'
path = os.path.dirname(os.path.abspath(__file__))