From beff483d19ab82faf373cbbde43decc4e864aa74 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Mon, 16 Dec 2013 19:53:11 +0100 Subject: [PATCH] [solo.commands] remove leading ">>" string from ask_question() message. --- client/solo/commands/conf.py | 4 ++-- client/solo/commands/rescue.py | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/client/solo/commands/conf.py b/client/solo/commands/conf.py index 42caade13..435e544d5 100644 --- a/client/solo/commands/conf.py +++ b/client/solo/commands/conf.py @@ -391,7 +391,7 @@ Manage package file updates. ) if cmd == -3: rc = entropy_client.ask_question( - ">> %s" % (_("Overwrite ?"),) ) + _("Overwrite ?")) if rc == _("No"): return @@ -446,7 +446,7 @@ Manage package file updates. ) if cmd == -7: rc = entropy_client.ask_question( - ">> %s" % (_("Discard ?"),) ) + _("Discard ?")) if rc == _("No"): return diff --git a/client/solo/commands/rescue.py b/client/solo/commands/rescue.py index dd71bfbed..d2919d4a5 100644 --- a/client/solo/commands/rescue.py +++ b/client/solo/commands/rescue.py @@ -670,8 +670,8 @@ Tools to rescue the running system. rc = _("Yes") accepted = True if ask: - rc = entropy_client.ask_question(">> %s" % ( - _("Continue ?"),)) + rc = entropy_client.ask_question( + _("Continue ?")) if rc != _("Yes"): accepted = False @@ -710,8 +710,7 @@ Tools to rescue the running system. if to_be_added and not pretend: if ask: - rc = entropy_client.ask_question(">> %s" % ( - _("Continue ?"),) ) + rc = entropy_client.ask_question(_("Continue ?")) if rc != _("Yes"): return 1