aboutsummaryrefslogtreecommitdiffstats
path: root/src/msec/tools.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/msec/tools.py')
-rwxr-xr-xsrc/msec/tools.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/msec/tools.py b/src/msec/tools.py
index baaeca2..044a299 100755
--- a/src/msec/tools.py
+++ b/src/msec/tools.py
@@ -9,8 +9,6 @@ import sys
import time
import locale
-from config import Narg, SYS_ENC
-
# localization
import gettext
try:
@@ -32,7 +30,7 @@ def find_firewall_info(log):
if l[:3] == "-A ":
firewall_entries.append(l.strip())
except:
- log.error(_("Unable to parse firewall configuration: %s") % Narg(sys.exc_info()[1]))
+ log.error(_("Unable to parse firewall configuration: %s") % sys.exc_info()[1])
# not find out if the firewall is enabled
if len(firewall_entries) == 0:
firewall_status = _("Disabled")
@@ -46,9 +44,9 @@ def get_updates_status(log, updatedir="/var/lib/urpmi"):
try:
ret = os.stat(updatedir)
updated = time.localtime(ret[stat.ST_MTIME])
- status = _("Last updated: %s") % Narg(updated_s)
+ status = _("Last updated: %s") % updated_s
except:
- log.error(_("Unable to access %s: %s") % (updatedir, Narg(sys.exc_info()[1])))
+ log.error(_("Unable to access %s: %s") % (updatedir, sys.exc_info()[1]))
status = _("Unable to determine update status")
return status