diff options
author | Jan Cholasta <jcholast@redhat.com> | 2011-04-14 10:17:04 +0200 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2011-04-20 14:38:02 -0400 |
commit | c31d7b9ad66248d62e9a5b3353c391b5a65237a9 (patch) | |
tree | 179ce65bcf4fa34ea04efbed421f44a36b70576a /install/po | |
parent | f8cb129b93d5becb5dc2cd358f34ee015abf8d72 (diff) | |
download | freeipa-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
Diffstat (limited to 'install/po')
-rwxr-xr-x | install/po/test_i18n.py | 4 |
1 files changed, 2 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 |