From 6ac5481c64ecb624557d44fec96cbb1f6499b3a4 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Sun, 16 Aug 2015 19:00:00 +0200 Subject: Py3 modernization: libmodernize.fixes.fix_metaclass Python 3 has a different syntax for meta classes. The old __metaclass__ attribute is no longer supported. six.with_metaclass() constructs a suitable metaclass for us. --- base/server/python/pki/server/deployment/pkiscriptlet.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'base/server/python') diff --git a/base/server/python/pki/server/deployment/pkiscriptlet.py b/base/server/python/pki/server/deployment/pkiscriptlet.py index e79231c60..43fc69488 100644 --- a/base/server/python/pki/server/deployment/pkiscriptlet.py +++ b/base/server/python/pki/server/deployment/pkiscriptlet.py @@ -22,13 +22,11 @@ # System Imports from __future__ import absolute_import import abc +import six # PKI Deployment Abstract Base PKI Scriptlet -class AbstractBasePkiScriptlet(object): - __metaclass__ = abc.ABCMeta - - # pylint: disable=W0613 +class AbstractBasePkiScriptlet(six.with_metaclass(abc.ABCMeta, object)): @abc.abstractmethod def spawn(self, deployer): """Retrieve data from the specified PKI dictionary and -- cgit