1
0
forked from VimPlug/jedi

remove CallSignature.module, because that's something for internal use

This commit is contained in:
Dave Halter
2014-03-14 01:34:04 +01:00
parent 56206a1ad8
commit c1dec3e87a
2 changed files with 4 additions and 5 deletions

View File

@@ -136,7 +136,10 @@ class Script(object):
if not dot:
# add named params
for call_sig in self.call_signatures():
if not isinstance(call_sig.module, compiled.CompiledObject):
# allow protected access, because it's a public API.
module = call_sig._executable.get_parent_until()
# Compiled modules typically don't allow keyword arguments.
if not isinstance(module, compiled.CompiledObject):
for p in call_sig.params:
# Allow access on _definition here, because it's a
# public API and we don't want to make the internal

View File

@@ -586,10 +586,6 @@ class CallSignature(object):
""" The name (e.g. 'isinstance') as a string. """
return unicode(self._executable.name)
@property
def module(self):
return self._executable.get_parent_until()
def __repr__(self):
return '<%s: %s index %s>' % (type(self).__name__, self._executable,
self.index)