1
0
forked from VimPlug/jedi

Remove some get_defined_names methods, that are not needed anymore.

This commit is contained in:
Dave Halter
2014-07-03 12:12:50 +02:00
parent 1fd7acef7a
commit 22e5574a91
4 changed files with 9 additions and 28 deletions

View File

@@ -230,7 +230,12 @@ class NestedImportModule(pr.Module):
debug.dbg('Generated a nested import: %s', new)
return helpers.FakeName(str(i.namespace.names[1]), new)
def get_defined_names(self):
def _get_defined_names(self):
"""
NesteImportModule don't seem to be actively used, right now.
However, they might in the future. If we do more sophisticated static
analysis checks.
"""
nested = self._get_nested_import_name()
return self._module.get_defined_names() + [nested]
@@ -256,12 +261,6 @@ class StarImportModule(pr.Module):
for s in self.star_import_modules:
yield s, s.get_defined_names()
def get_defined_names(self):
result = self._module.get_defined_names()
for m in self.star_import_modules:
result += m.get_defined_names()
return result
def __getattr__(self, name):
return getattr(self._module, name)