pylint: Skip unused-private-member for unsupported cases

> This mangling is done without regard to the syntactic position of the
identifier, as long as it occurs within the definition of a class.

`__set_attr` is called for instance of the class within its
classmethod.

Fixes: https://pagure.io/freeipa/issue/9117
Signed-off-by: Stanislav Levin <slev@altlinux.org>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
Stanislav Levin
2022-02-18 18:54:23 +03:00
committed by Rob Crittenden
parent 9ca818b179
commit bffde84c81

View File

@@ -444,7 +444,7 @@ class Cookie:
except Exception:
raise ValueError("Max-Age value '%s' not convertable to integer" % value)
def __set_attr(self, name, value):
def __set_attr(self, name, value): # pylint: disable=unused-private-member
'''
Sets one of the predefined cookie attributes.
'''