mirror of
https://github.com/SELinuxProject/setools
synced 2025-03-11 07:18:15 +00:00
TabRegistry: Switch __new__() use to *args, **kwargs.
This fixes a pylint issue. Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
This commit is contained in:
parent
13edaf693c
commit
263b588a6d
@ -35,9 +35,11 @@ class TabRegistry(sip.wrappertype):
|
||||
saving tab/workspace info.
|
||||
"""
|
||||
|
||||
def __new__(cls, clsname, superclasses, attributedict):
|
||||
classdef = super().__new__(cls, clsname, superclasses, attributedict)
|
||||
def __new__(cls, *args, **kwargs):
|
||||
classdef = super().__new__(cls, *args, **kwargs)
|
||||
|
||||
clsname = args[0]
|
||||
attributedict = args[2]
|
||||
if clsname != "AnalysisTab":
|
||||
assert "section" in attributedict, "Class {} is missing the section value, " \
|
||||
"this is an setools bug".format(clsname)
|
||||
|
Loading…
Reference in New Issue
Block a user