diff options
| author | Akihiro MOTOKI <motoki@da.jp.nec.com> | 2013-05-21 15:56:26 +0900 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2013-06-13 05:19:54 +0000 |
| commit | b5a416ac344160512f95751ae16e6612aefd4a57 (patch) | |
| tree | 9d30c73c17254ee0dc4d8ec47c9e6b678d1925da /quantumclient/shell.py | |
| parent | 53adca574705ca6bbeda3a20716c8e4816cc6841 (diff) | |
| download | python-neutronclient-b5a416ac344160512f95751ae16e6612aefd4a57.tar.gz | |
Remove class-based import in the code repo
Fixes bug 1167901
This commit also removes backslashes for line break.
Change-Id: Id26fdfd2af4862652d7270aec132d40662efeb96
Diffstat (limited to 'quantumclient/shell.py')
| -rw-r--r-- | quantumclient/shell.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/quantumclient/shell.py b/quantumclient/shell.py index afcabb7..7c6618b 100644 --- a/quantumclient/shell.py +++ b/quantumclient/shell.py @@ -25,8 +25,8 @@ import logging import os import sys -from cliff.app import App -from cliff.commandmanager import CommandManager +from cliff import app +from cliff import commandmanager from quantumclient.common import clientmanager from quantumclient.common import exceptions as exc @@ -287,7 +287,7 @@ class HelpAction(argparse.Action): sys.exit(0) -class QuantumShell(App): +class QuantumShell(app.App): CONSOLE_MESSAGE_FORMAT = '%(message)s' DEBUG_MESSAGE_FORMAT = '%(levelname)s: %(name)s %(message)s' @@ -297,7 +297,7 @@ class QuantumShell(App): super(QuantumShell, self).__init__( description=__doc__.strip(), version=VERSION, - command_manager=CommandManager('quantum.cli'), ) + command_manager=commandmanager.CommandManager('quantum.cli'), ) self.commands = COMMANDS for k, v in self.commands[apiversion].items(): self.command_manager.add_command(k, v) |
