From fcbf104b14c47c572c749736d7ce4981dfbedd3d Mon Sep 17 00:00:00 2001 From: fling Date: Mon, 25 Oct 2010 09:59:01 +0800 Subject: [PATCH] modified: ri_inst_cli.py format-string --- interface/ri_inst_cli.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/interface/ri_inst_cli.py b/interface/ri_inst_cli.py index 8efca03..54ee079 100644 --- a/interface/ri_inst_cli.py +++ b/interface/ri_inst_cli.py @@ -24,10 +24,10 @@ def set_sub_task(sub_task): print sub_task def set_task_scale(): - print '%', Rate.value + print "%.2f" %float(Rate.value) def set_task_over(): - string = raw_input("Rocky system install success,plase reboot now![Y?]") + string = raw_input("Rocky system installation successfully, are your restart?[Y]") if string.lower() == "y": return True return False @@ -36,9 +36,6 @@ def root_destroy(): pass def error(oper, ret): - if language == 'chinese': - print "%s:\n Error number: %d\n %s"%(oper.chinese_name, ret, oper.return_value[ret][1]) - else: print "%s:\n Error number: %d\n %s"%(oper.english_name, ret, oper.return_value[ret][0])