1
0
forked from VimPlug/jedi

make first faked compiled modules work

This commit is contained in:
Dave Halter
2014-01-10 23:35:53 +01:00
parent 78cc015b9d
commit 01c03966a7
3 changed files with 11 additions and 4 deletions

View File

@@ -74,7 +74,7 @@ class PyObject(Base):
elif t == 'def':
for name in self._parse_function_doc()[1].split():
try:
yield PyObject(getattr(_builtins, name), builtin, True)
yield create(getattr(_builtins, name), builtin, True)
except AttributeError:
pass
@@ -99,7 +99,7 @@ class PyName(object):
def parent(self):
try:
# this has a builtin_function_or_method
return PyObject(getattr(self._obj.obj, self._name), self._obj)
return create(getattr(self._obj.obj, self._name), self._obj)
except AttributeError:
# happens e.g. in properties of
# PyQt4.QtGui.QStyleOptionComboBox.currentText