From 790687cc86370e6f672654b3ab76d5a1fad41bf1 Mon Sep 17 00:00:00 2001 From: SARL ENR 68 Date: Fri, 28 Aug 2015 20:04:58 +0200 Subject: Adjust gettext.install for python3 (mga#16524) - by papoteur: https://bugs.mageia.org/attachment.cgi?id=6900 --- src/msec/config.py | 2 +- src/msec/help_draksec.py | 4 ++-- src/msec/libmsec.py | 2 +- src/msec/msec.py | 2 +- src/msec/msecgui.py | 2 +- src/msec/msecperms.py | 2 +- src/msec/plugins/audit.py | 2 +- src/msec/plugins/log.py | 2 +- src/msec/plugins/msec.py | 2 +- src/msec/plugins/network.py | 2 +- src/msec/plugins/pam.py | 2 +- src/msec/plugins/sectool.py | 2 +- src/msec/plugins/sudo.py | 2 +- src/msec/tools.py | 2 +- 14 files changed, 15 insertions(+), 15 deletions(-) (limited to 'src') diff --git a/src/msec/config.py b/src/msec/config.py index 6242fc7..b4466ed 100755 --- a/src/msec/config.py +++ b/src/msec/config.py @@ -38,7 +38,7 @@ SECURITYLOG = '/var/log/msec.log' # localization try: - gettext.install('msec', str=1) + gettext.install('msec') except IOError: _ = str diff --git a/src/msec/help_draksec.py b/src/msec/help_draksec.py index 6863038..893b12b 100755 --- a/src/msec/help_draksec.py +++ b/src/msec/help_draksec.py @@ -31,7 +31,7 @@ import gettext # localization try: - gettext.install('msec', unicode=1) + gettext.install('msec') except IOError: _ = str @@ -53,7 +53,7 @@ import gettext # localization try: - gettext.install('msec', unicode=1) + gettext.install('msec') except IOError: _ = str diff --git a/src/msec/libmsec.py b/src/msec/libmsec.py index 17e8dd2..f8a296a 100755 --- a/src/msec/libmsec.py +++ b/src/msec/libmsec.py @@ -57,7 +57,7 @@ from config import Narg # localization try: - gettext.install('msec', str=1) + gettext.install('msec') except IOError: _ = str diff --git a/src/msec/msec.py b/src/msec/msec.py index a44267c..6e816c9 100755 --- a/src/msec/msec.py +++ b/src/msec/msec.py @@ -28,7 +28,7 @@ import logging # localization try: - gettext.install('msec', str=1) + gettext.install('msec') except IOError: _ = str diff --git a/src/msec/msecgui.py b/src/msec/msecgui.py index 0d64dea..2a7142f 100755 --- a/src/msec/msecgui.py +++ b/src/msec/msecgui.py @@ -51,7 +51,7 @@ import logging # localization import gettext try: - gettext.install("msec", str=1) + gettext.install("msec") except IOError: _ = str diff --git a/src/msec/msecperms.py b/src/msec/msecperms.py index df3cdb1..2d0887a 100755 --- a/src/msec/msecperms.py +++ b/src/msec/msecperms.py @@ -18,7 +18,7 @@ import getopt import gettext try: - gettext.install('msec', str=1) + gettext.install('msec') except IOError: _ = str diff --git a/src/msec/plugins/audit.py b/src/msec/plugins/audit.py index dc5e6e0..8dee7ab 100755 --- a/src/msec/plugins/audit.py +++ b/src/msec/plugins/audit.py @@ -10,7 +10,7 @@ import config import gettext # localization try: - gettext.install('msec', str=1) + gettext.install('msec') except IOError: _ = str diff --git a/src/msec/plugins/log.py b/src/msec/plugins/log.py index 3284cbc..993d3c0 100755 --- a/src/msec/plugins/log.py +++ b/src/msec/plugins/log.py @@ -12,7 +12,7 @@ import config # localization try: - gettext.install('msec', str=1) + gettext.install('msec') except IOError: _ = str diff --git a/src/msec/plugins/msec.py b/src/msec/plugins/msec.py index 59366a4..fa8a41d 100755 --- a/src/msec/plugins/msec.py +++ b/src/msec/plugins/msec.py @@ -17,7 +17,7 @@ import config import gettext # localization try: - gettext.install('msec', str=1) + gettext.install('msec') except IOError: _ = str diff --git a/src/msec/plugins/network.py b/src/msec/plugins/network.py index a4f5400..ecaae94 100755 --- a/src/msec/plugins/network.py +++ b/src/msec/plugins/network.py @@ -17,7 +17,7 @@ import config import gettext # localization try: - gettext.install('msec', str=1) + gettext.install('msec') except IOError: _ = str diff --git a/src/msec/plugins/pam.py b/src/msec/plugins/pam.py index 776ad70..e02b6d9 100755 --- a/src/msec/plugins/pam.py +++ b/src/msec/plugins/pam.py @@ -14,7 +14,7 @@ import config # localization try: - gettext.install('msec', str=1) + gettext.install('msec') except IOError: _ = str diff --git a/src/msec/plugins/sectool.py b/src/msec/plugins/sectool.py index a04dc51..72115a1 100755 --- a/src/msec/plugins/sectool.py +++ b/src/msec/plugins/sectool.py @@ -14,7 +14,7 @@ import config # localization try: - gettext.install('msec', str=1) + gettext.install('msec') except IOError: _ = str diff --git a/src/msec/plugins/sudo.py b/src/msec/plugins/sudo.py index 2df7fbd..1f9eddd 100755 --- a/src/msec/plugins/sudo.py +++ b/src/msec/plugins/sudo.py @@ -14,7 +14,7 @@ import config # localization try: - gettext.install('msec', str=1) + gettext.install('msec') except IOError: _ = str diff --git a/src/msec/tools.py b/src/msec/tools.py index 28c303b..baaeca2 100755 --- a/src/msec/tools.py +++ b/src/msec/tools.py @@ -14,7 +14,7 @@ from config import Narg, SYS_ENC # localization import gettext try: - gettext.install("msec", str=1) + gettext.install("msec") except IOError: _ = str -- cgit v1.2.1