aboutsummaryrefslogtreecommitdiffstats
path: root/src/msec/msecgui.py
diff options
context:
space:
mode:
authorSARL ENR 68 <david@david.david>2015-08-28 20:10:47 +0200
committerSARL ENR 68 <david@david.david>2015-08-28 20:10:47 +0200
commit71c7542f490e69f94b2a5277b40f4072a0fc7ad5 (patch)
treec1cd6a662379844ca1e77a47672e8dd4ff5c4658 /src/msec/msecgui.py
parent3cca390baa91f14bb8f112587bf62388dbad66b8 (diff)
downloadmsec-71c7542f490e69f94b2a5277b40f4072a0fc7ad5.tar
msec-71c7542f490e69f94b2a5277b40f4072a0fc7ad5.tar.gz
msec-71c7542f490e69f94b2a5277b40f4072a0fc7ad5.tar.bz2
msec-71c7542f490e69f94b2a5277b40f4072a0fc7ad5.tar.xz
msec-71c7542f490e69f94b2a5277b40f4072a0fc7ad5.zip
Reverse the Narg function, no more needed (mga#16524)
- by papoteur: https://bugs.mageia.org/attachment.cgi?id=6928
Diffstat (limited to 'src/msec/msecgui.py')
-rwxr-xr-xsrc/msec/msecgui.py15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/msec/msecgui.py b/src/msec/msecgui.py
index 209b0f8..d6b4203 100755
--- a/src/msec/msecgui.py
+++ b/src/msec/msecgui.py
@@ -14,8 +14,6 @@ from textwrap import wrap
from threading import Thread
import time
-from config import Narg
-
# PyGTK
import warnings
warnings.filterwarnings('error', module='gtk')
@@ -381,14 +379,14 @@ class MsecGui:
# TODO: FIX
for name, changes in allchanges:
- label = Gtk.Label(label=_('<b>%s:</b> <i>%s</i>\n') % (Narg(name), Narg(changes)))
+ label = Gtk.Label(label=_('<b>%s:</b> <i>%s</i>\n') % (name, changes))
label.set_use_markup(True)
label.set_property("xalign", 0.0)
vbox.pack_start(label, False, False, padding=DEFAULT_SPACING)
# see if there were any changes to system files
for msg in messages['info']:
if msg.find(config.MODIFICATIONS_FOUND) != -1 or msg.find(config.MODIFICATIONS_NOT_FOUND) != -1:
- label = Gtk.Label(label=_("<b>MSEC test run results:</b> <i>%s</i>") % Narg(msg))
+ label = Gtk.Label(label=_("<b>MSEC test run results:</b> <i>%s</i>") % msg)
label.set_line_wrap(True)
label.set_use_markup(True)
label.set_property("xalign", 0.0)
@@ -661,7 +659,7 @@ class MsecGui:
for check, logfile, updated_n, updated in tools.periodic_check_status(log):
if not updated:
updated = _("Never")
- label = Gtk.Label(label=_("Check: %s. Last run: %s") % (Narg(check), Narg(updated)))
+ label = Gtk.Label(label=_("Check: %s. Last run: %s") % (check, updated))
label.set_property("xalign", 0.0)
table.attach(label, 2, 3, row, row + 1, Gtk.AttachOptions.EXPAND | Gtk.AttachOptions.FILL, 0, 0, 0)
@@ -693,7 +691,7 @@ class MsecGui:
with open(logfile, "r") as fd:
data = fd.readlines()
except:
- data = [_("Unable to read log file: %s") % Narg(sys.exc_info()[1])]
+ data = [_("Unable to read log file: %s") % sys.exc_info()[1]]
dialog = Gtk.Dialog(_("Periodic check results"),
self.window,
0,
@@ -726,7 +724,7 @@ class MsecGui:
flags=0,
type=Gtk.MessageType.INFO,
buttons=Gtk.ButtonsType.YES_NO)
- dialog.set_markup(_("Do you want to run the <b>%s</b> periodic check? Please note that it could take a considerable time to finish.") % Narg(check))
+ dialog.set_markup(_("Do you want to run the <b>%s</b> periodic check? Please note that it could take a considerable time to finish.") % check)
dialog.show_all()
ret = dialog.run()
dialog.destroy()
@@ -1645,9 +1643,6 @@ class MsecGui:
val_def = conf_def.get(param)
- for i in [param, descr, value]:
- i = Narg(i)
-
# asks for new parameter value
dialog = Gtk.Dialog(_("Select new value for %s") % (param),
self.window, 0,