diff options
author | Christian Heimes <cheimes@redhat.com> | 2015-08-16 19:00:00 +0200 |
---|---|---|
committer | Christian Heimes <cheimes@redhat.com> | 2015-08-17 21:14:11 +0200 |
commit | 6ac5481c64ecb624557d44fec96cbb1f6499b3a4 (patch) | |
tree | 682d642ea158c6e5db596906992dc536463fcf88 /base/server | |
parent | a579f77446801ae69a1275bc609e6a942c1d4b53 (diff) | |
download | pki-6ac5481c64ecb624557d44fec96cbb1f6499b3a4.tar.gz pki-6ac5481c64ecb624557d44fec96cbb1f6499b3a4.tar.xz pki-6ac5481c64ecb624557d44fec96cbb1f6499b3a4.zip |
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.
Diffstat (limited to 'base/server')
-rw-r--r-- | base/server/python/pki/server/deployment/pkiscriptlet.py | 6 |
1 files changed, 2 insertions, 4 deletions
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 |