diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-22 21:27:47 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-22 21:27:47 +0200 |
commit | 674b2a24f90b3cbf50630ddfdfb6c2b356a7bf7b (patch) | |
tree | 24a575f4c7319a3f9048718a08094bb510f72603 /pyload/config | |
parent | Spare code cosmetics (10) (diff) | |
parent | little fix (diff) | |
download | pyload-674b2a24f90b3cbf50630ddfdfb6c2b356a7bf7b.tar.xz |
Merge pull request #11 from ardi69/0.4.10
some fixes
Diffstat (limited to 'pyload/config')
-rw-r--r-- | pyload/config/Setup.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/pyload/config/Setup.py b/pyload/config/Setup.py index f078d54d0..e2f96c802 100644 --- a/pyload/config/Setup.py +++ b/pyload/config/Setup.py @@ -24,6 +24,11 @@ class SetupAssistant(object): self.lang = "en" self.stdin_encoding = get_console_encoding(sys.stdin.encoding) + # Input shorthand for yes + self.yes = "y" + # Input shorthand for no + self.no = "n" + def start(self): print @@ -383,7 +388,7 @@ class SetupAssistant(object): print _("2 - List users") print _("3 - Remove user") print _("4 - Quit") - action = raw_input("[1]/2/3/4: ") + action = raw_input("1/2/3/4: ") if not action in ("1", "2", "3", "4"): continue elif action == "1": @@ -463,8 +468,8 @@ class SetupAssistant(object): info = "" print "%(dep)-12s %(bool)s (%(info)s)" % {'dep': name + ':', - 'bool': _(true if value else false).upper(), - 'info': info} + 'bool': _(true if value else false).upper(), + 'info': info} def check_module(self, module): |