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/common/python/pki | |
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/common/python/pki')
-rw-r--r-- | base/common/python/pki/crypto.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/common/python/pki/crypto.py b/base/common/python/pki/crypto.py index 9c1c0f881..cf97a668c 100644 --- a/base/common/python/pki/crypto.py +++ b/base/common/python/pki/crypto.py @@ -25,16 +25,16 @@ from __future__ import absolute_import import abc import nss.nss as nss import os +import six import shutil import subprocess import tempfile -class CryptoProvider(object): +class CryptoProvider(six.with_metaclass(abc.ABCMeta, object)): """ Abstract class containing methods to do cryptographic operations. """ - __metaclass__ = abc.ABCMeta def __init__(self): """ Constructor """ |