From dfa1ceac6f70e32184d2ef19706cd2c582df1cc7 Mon Sep 17 00:00:00 2001 From: Stanislav Levin Date: Fri, 18 Feb 2022 15:22:56 +0300 Subject: [PATCH] pylint: Drop no longer used __finalized The private member `__finalized` has been added in 7db3aae1b26588b3650dae442b07dca0f33ab0c8, later removed in 6b8abb0d78a8d86d7ca52083a267fe226bf74656, but `_API__finalized` (access via mangled attribute name) was not cleaned up and finally refactored back to `__finalized` in b1fc875c3ac74be91df8f1cf8b4369b77a156677. Found by Pylint: ``` ipalib/plugable.py:807: [W0238(unused-private-member), API.finalize] Unused private member `API.__finalized`) ``` Fixes: https://pagure.io/freeipa/issue/9117 Signed-off-by: Stanislav Levin Reviewed-By: Rob Crittenden --- ipalib/plugable.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/ipalib/plugable.py b/ipalib/plugable.py index 4c2782dbf..e6170178e 100644 --- a/ipalib/plugable.py +++ b/ipalib/plugable.py @@ -804,8 +804,6 @@ class API(ReadOnly): if not production_mode: assert islocked(instance) - self.__finalized = True - if not production_mode: lock(self)