From 1d47ab7e2a49048f425d544b38bc980abb4f53ef Mon Sep 17 00:00:00 2001 From: David Mulder Date: Thu, 29 Mar 2018 09:07:53 -0600 Subject: [PATCH] gpo: Move gp_sec_ext __init__ to base class For this class to be extensible, the constructor should be available to subclasses. Signed-off-by: David Mulder Reviewed-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- python/samba/gpclass.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/samba/gpclass.py b/python/samba/gpclass.py index efca807fa64d..8405c8fe5956 100644 --- a/python/samba/gpclass.py +++ b/python/samba/gpclass.py @@ -286,6 +286,9 @@ class GPOStorage: class gp_ext(object): __metaclass__ = ABCMeta + def __init__(self, logger): + self.logger = logger + @abstractmethod def list(self, rootpath): pass @@ -424,9 +427,6 @@ class gp_sec_ext(gp_ext): count = 0 - def __init__(self, logger): - self.logger = logger - def __str__(self): return "Security GPO extension" -- 2.34.1