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>
This commit is contained in:
Christian Heimes
2016-11-23 10:04:43 +01:00
committed by Martin Basti
parent 044d887e81
commit 38e8719f72
24 changed files with 40 additions and 21 deletions

View File

@@ -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)