From ab2ca8022e4bd89e87e0b7ce908022e6df350866 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Tue, 25 Jan 2011 18:46:26 +0100 Subject: Fix assorted bugs found by pylint --- ipalib/cli.py | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'ipalib/cli.py') diff --git a/ipalib/cli.py b/ipalib/cli.py index 2d219b71..9dda1c27 100644 --- a/ipalib/cli.py +++ b/ipalib/cli.py @@ -620,17 +620,6 @@ class help(frontend.Local): if module == __name__: return return module.split('.')[-1] - # get representation in the form of 'base_module.bare_module.command()' - r = repr(cmd_plugin_proxy) - # skip base module part and the following dot - start = r.find(self._PLUGIN_BASE_MODULE) - if start == -1: - # command module isn't a plugin module, it's a builtin - return None - start += len(self._PLUGIN_BASE_MODULE) + 1 - # parse bare module name - end = r.find('.', start) - return r[start:end] def _get_module_topic(self, module_name): if not sys.modules[module_name]: -- cgit