mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
pylint: Fix deprecated-class
There is no actual usage of deprecated classes for Python3. Pylint complains about such for Python2. Since Python2 is no longer supported these imports were removed. Fixes: https://pagure.io/freeipa/issue/9117 Signed-off-by: Stanislav Levin <slev@altlinux.org> Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
committed by
Rob Crittenden
parent
0ebf09e061
commit
ccf9334da9
@@ -5,11 +5,10 @@
|
||||
from __future__ import print_function, absolute_import
|
||||
|
||||
from binascii import hexlify
|
||||
from collections.abc import MutableMapping
|
||||
import logging
|
||||
from pprint import pprint
|
||||
|
||||
import six
|
||||
|
||||
import ipalib
|
||||
from ipaplatform.paths import paths
|
||||
from ipapython.dn import DN
|
||||
@@ -24,13 +23,6 @@ from ipaserver.dnssec.abshsm import (
|
||||
from ipaserver import p11helper as _ipap11helper
|
||||
import uuid
|
||||
|
||||
# pylint: disable=no-name-in-module, import-error
|
||||
if six.PY3:
|
||||
from collections.abc import MutableMapping
|
||||
else:
|
||||
from collections import MutableMapping
|
||||
# pylint: enable=no-name-in-module, import-error
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
|
||||
@@ -4,11 +4,10 @@
|
||||
|
||||
from __future__ import print_function, absolute_import
|
||||
|
||||
from collections.abc import MutableMapping
|
||||
import os
|
||||
from pprint import pprint
|
||||
|
||||
import six
|
||||
|
||||
from ipalib.constants import SOFTHSM_DNSSEC_TOKEN_LABEL
|
||||
from ipaplatform.paths import paths
|
||||
from ipaserver import p11helper as _ipap11helper
|
||||
@@ -17,13 +16,6 @@ from ipaserver.dnssec.abshsm import (attrs_name2id, attrs_id2name, AbstractHSM,
|
||||
ldap2p11helper_api_params)
|
||||
from ipaserver.dnssec.ldapkeydb import str_hexlify
|
||||
|
||||
# pylint: disable=no-name-in-module, import-error
|
||||
if six.PY3:
|
||||
from collections.abc import MutableMapping
|
||||
else:
|
||||
from collections import MutableMapping
|
||||
# pylint: enable=no-name-in-module, import-error
|
||||
|
||||
|
||||
private_key_api_params = set(["label", "id", "data", "unwrapping_key",
|
||||
"wrapping_mech", "key_type", "cka_always_authenticate", "cka_copyable",
|
||||
|
||||
Reference in New Issue
Block a user