From c31d7b9ad66248d62e9a5b3353c391b5a65237a9 Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Thu, 14 Apr 2011 10:17:04 +0200 Subject: Fix some minor issues uncovered by pylint. Disable pylint error _ undefined in i18n tests Fix missing os import in ipa-nis-manage --- install/po/test_i18n.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'install/po') 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 -- cgit