summaryrefslogtreecommitdiffstats
path: root/ipalib/cli.py
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2011-01-25 18:46:26 +0100
committerSimo Sorce <ssorce@redhat.com>2011-01-25 14:01:36 -0500
commitab2ca8022e4bd89e87e0b7ce908022e6df350866 (patch)
tree2f2bde264c001886e90dfb10466539e8f8b75782 /ipalib/cli.py
parent27da394c442e98334726a7aae7da885c840be350 (diff)
downloadfreeipa-ab2ca8022e4bd89e87e0b7ce908022e6df350866.tar.gz
freeipa-ab2ca8022e4bd89e87e0b7ce908022e6df350866.tar.xz
freeipa-ab2ca8022e4bd89e87e0b7ce908022e6df350866.zip
Fix assorted bugs found by pylint
Diffstat (limited to 'ipalib/cli.py')
-rw-r--r--ipalib/cli.py11
1 files changed, 0 insertions, 11 deletions
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]: