diff options
author | Petr Viktorin <pviktori@redhat.com> | 2016-05-06 17:08:18 +0200 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-05-30 16:44:08 +0200 |
commit | 75d0a73bbc426e9b6cabc38f2e932d701b25a762 (patch) | |
tree | 28b9c78104cb368ad5c1278f51098c61740c5a0b /ipapython | |
parent | 36094b2a542a9472506034dc6c86a573e95c71de (diff) | |
download | freeipa-75d0a73bbc426e9b6cabc38f2e932d701b25a762.tar.gz freeipa-75d0a73bbc426e9b6cabc38f2e932d701b25a762.tar.xz freeipa-75d0a73bbc426e9b6cabc38f2e932d701b25a762.zip |
ipapython.secrets.kem: Use ConfigParser from six.moves
In Python 3, the module name changed from 'ConfigParser' to
'configparser'. Use the appropriate location from six.
Part of the work for: https://fedorahosted.org/freeipa/ticket/4985
Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'ipapython')
-rw-r--r-- | ipapython/secrets/kem.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipapython/secrets/kem.py b/ipapython/secrets/kem.py index 1025ed798..0abf28ae4 100644 --- a/ipapython/secrets/kem.py +++ b/ipapython/secrets/kem.py @@ -2,7 +2,7 @@ from __future__ import print_function from ipaplatform.paths import paths -import ConfigParser +from six.moves.configparser import ConfigParser from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import serialization from cryptography.hazmat.primitives.asymmetric import rsa, ec @@ -154,7 +154,7 @@ class IPAKEMKeys(KEMKeysStore): def __init__(self, config=None, ipaconf=paths.IPA_DEFAULT_CONF): super(IPAKEMKeys, self).__init__(config) - conf = ConfigParser.ConfigParser() + conf = ConfigParser() conf.read(ipaconf) self.host = conf.get('global', 'host') self.realm = conf.get('global', 'realm') |