From 38e8719f728e6d54289507fe2c7f79f9272c45c0 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Wed, 23 Nov 2016 10:04:43 +0100 Subject: 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 Reviewed-By: Martin Basti --- ipalib/text.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ipalib/text.py') 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) -- cgit