summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xinstall/po/test_i18n.py4
-rwxr-xr-xinstall/tools/ipa-nis-manage1
2 files changed, 3 insertions, 2 deletions
diff --git a/install/po/test_i18n.py b/install/po/test_i18n.py
index f4de7c924..0797dd79f 100755
--- a/install/po/test_i18n.py
+++ b/install/po/test_i18n.py
@@ -80,7 +80,7 @@ def main():
print "Using message string \"%s\" found in file \"%s\"" % (msgid, test_file)
# Get the translated version of the msgid string by invoking _()
- translated = _(msgid)
+ translated = _(msgid) #pylint: disable=E0602
# Verify the first character is the test prefix
if translated[0] != prefix:
@@ -98,7 +98,7 @@ def main():
raise ValueError("Translated string \"%s\" minus the first & last character is not equal to msgid \"%s\"" % \
(translated.encode('utf-8'), msgid))
- print "Success: message string \"%s\" maps to translated string \"%s\"" % (msgid, _(msgid).encode('utf-8'))
+ print "Success: message string \"%s\" maps to translated string \"%s\"" % (msgid, _(msgid).encode('utf-8')) #pylint: disable=E0602
except Exception, e:
print >> sys.stderr, "ERROR: %s" % e
return 1
diff --git a/install/tools/ipa-nis-manage b/install/tools/ipa-nis-manage
index 9cd6b5f03..69db06ab8 100755
--- a/install/tools/ipa-nis-manage
+++ b/install/tools/ipa-nis-manage
@@ -20,6 +20,7 @@
#
import sys
+import os
try:
from optparse import OptionParser
from ipapython import ipautil, config