mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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:
committed by
Martin Basti
parent
044d887e81
commit
38e8719f72
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user