summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2011-04-14 10:17:04 +0200
committerRob Crittenden <rcritten@redhat.com>2011-04-20 14:38:02 -0400
commitc31d7b9ad66248d62e9a5b3353c391b5a65237a9 (patch)
tree179ce65bcf4fa34ea04efbed421f44a36b70576a
parentf8cb129b93d5becb5dc2cd358f34ee015abf8d72 (diff)
downloadfreeipa-c31d7b9ad66248d62e9a5b3353c391b5a65237a9.tar.gz
freeipa-c31d7b9ad66248d62e9a5b3353c391b5a65237a9.tar.xz
freeipa-c31d7b9ad66248d62e9a5b3353c391b5a65237a9.zip
Fix some minor issues uncovered by pylint.
Disable pylint error _ undefined in i18n tests Fix missing os import in ipa-nis-manage
-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 f4de7c92..0797dd79 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 9cd6b5f0..69db06ab 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