summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurizio Lombardi <mlombard@redhat.com>2022-01-26 09:10:39 +0100
committerMaurizio Lombardi <mlombard@redhat.com>2022-01-26 09:11:25 +0100
commitb4923ee5591d8b980003150e0ba6ffe512d8c9da (patch)
tree2fefe36f0c31b151c6dcea2124746b3710593516
parent8214d9af2d52856d231db3b70241163d9bebab64 (diff)
downloadconfigshell-fb-b4923ee5591d8b980003150e0ba6ffe512d8c9da.tar.gz
Revert "ConfigShell support passing Console object as parameter"
Revert because of issue #63 This reverts commit fd17712b84cbb896e7532a20e5f1f691e4c33479.
-rw-r--r--configshell/shell.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/configshell/shell.py b/configshell/shell.py
index be84b40..437186d 100644
--- a/configshell/shell.py
+++ b/configshell/shell.py
@@ -101,7 +101,7 @@ class ConfigShell(object):
_current_token = ''
_current_completions = []
- def __init__(self, preferences_dir=None, console=None):
+ def __init__(self, preferences_dir=None):
'''
Creates a new ConfigShell.
@param preferences_dir: Directory to load/save preferences from/to
@@ -177,9 +177,7 @@ class ConfigShell(object):
if pref not in self.prefs:
self.prefs[pref] = value
- if console is None:
- console = console.Console()
- self.con = console
+ self.con = console.Console()
# Private methods