summaryrefslogtreecommitdiffstats
path: root/ipalib/text.py
diff options
context:
space:
mode:
authorChristian Heimes <cheimes@redhat.com>2016-11-23 10:04:43 +0100
committerMartin Basti <mbasti@redhat.com>2016-11-25 16:18:22 +0100
commit38e8719f728e6d54289507fe2c7f79f9272c45c0 (patch)
tree09b4709a878ae7bb428a0302043d15e20747efed /ipalib/text.py
parent044d887e81d433b43c33b076a21fd1054796786e (diff)
downloadfreeipa-38e8719f728e6d54289507fe2c7f79f9272c45c0.tar.gz
freeipa-38e8719f728e6d54289507fe2c7f79f9272c45c0.tar.xz
freeipa-38e8719f728e6d54289507fe2c7f79f9272c45c0.zip
Python3 pylint fixes
Sprinkle 'pylint disable' comments over the code base to silence a bunch of pylint warnings on Python 3. All silenced warnings are harmless and not bugs. https://fedorahosted.org/freeipa/ticket/4985 Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'ipalib/text.py')
-rw-r--r--ipalib/text.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ipalib/text.py b/ipalib/text.py
index 34e5f1a89..f4f810c28 100644
--- a/ipalib/text.py
+++ b/ipalib/text.py
@@ -254,7 +254,7 @@ class Gettext(LazyText):
else:
t = create_translation(self.key)
if six.PY2:
- return t.ugettext(self.msg)
+ return t.ugettext(self.msg) # pylint: disable=no-member
else:
return t.gettext(self.msg)
@@ -409,7 +409,9 @@ class NGettext(LazyText):
else:
t = create_translation(self.key)
if six.PY2:
+ # pylint: disable=no-member
return t.ungettext(self.singular, self.plural, count)
+ # pylint: enable=no-member
else:
return t.ngettext(self.singular, self.plural, count)