mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 07:33:27 -06:00
Pylint: enable reimported check
Fixes current reimports and enables pylint check for them Reviewed-By: Petr Spacek <pspacek@redhat.com> Reviewed-By: Lukas Slebodnik <lslebodn@redhat.com>
This commit is contained in:
parent
5add0f94cf
commit
d46cd5d956
@ -27,7 +27,7 @@ from six.moves.urllib.parse import urlparse
|
||||
from ipalib import errors
|
||||
from ipalib.text import _
|
||||
from ipapython.ipa_log_manager import root_logger, log_mgr
|
||||
from ipalib import api, errors
|
||||
from ipalib import api
|
||||
from ipaplatform.paths import paths
|
||||
from ipalib.krb_utils import (
|
||||
krb5_parse_ccache,
|
||||
|
@ -404,7 +404,6 @@ if __name__ == '__main__':
|
||||
# this can be run with:
|
||||
# python ipalib/x509.py < /etc/ipa/ca.crt
|
||||
|
||||
from ipalib import api
|
||||
api.bootstrap()
|
||||
api.finalize()
|
||||
|
||||
|
@ -38,7 +38,6 @@ from ipaserver.install import installutils
|
||||
from ipapython import ipaldap
|
||||
from ipalib.session import ISO8601_DATETIME_FMT
|
||||
from ipalib.constants import CACERT
|
||||
from six.moves.configparser import SafeConfigParser
|
||||
from ipaplatform.tasks import tasks
|
||||
|
||||
"""
|
||||
|
@ -9,7 +9,6 @@ import stat
|
||||
import shutil
|
||||
from subprocess import CalledProcessError
|
||||
|
||||
from ipapython import p11helper as _ipap11helper
|
||||
from ipaserver.install import service
|
||||
from ipaserver.install import installutils
|
||||
from ipapython.ipa_log_manager import root_logger
|
||||
@ -245,7 +244,7 @@ class OpenDNSSECInstance(service.Service):
|
||||
pin = f.read()
|
||||
|
||||
os.environ["SOFTHSM2_CONF"] = paths.DNSSEC_SOFTHSM2_CONF
|
||||
p11 = _ipap11helper.P11_Helper(softhsm_slot, pin, paths.LIBSOFTHSM2_SO)
|
||||
p11 = p11helper.P11_Helper(softhsm_slot, pin, paths.LIBSOFTHSM2_SO)
|
||||
try:
|
||||
# generate master key
|
||||
root_logger.debug("Creating master key")
|
||||
|
@ -253,7 +253,7 @@ from six.moves import urllib
|
||||
from ipalib import Backend
|
||||
from ipapython.dn import DN
|
||||
import ipapython.cookie
|
||||
import ipapython.dogtag
|
||||
from ipapython import dogtag
|
||||
from ipapython import ipautil
|
||||
|
||||
if six.PY3:
|
||||
@ -1276,7 +1276,6 @@ import os, random
|
||||
from ipaserver.plugins import rabase
|
||||
from ipalib.constants import TYPE_ERROR
|
||||
from ipalib.util import cachedproperty
|
||||
from ipapython import dogtag
|
||||
from ipalib import _
|
||||
from ipaplatform.paths import paths
|
||||
|
||||
|
@ -29,8 +29,6 @@ from nss.error import NSPRError
|
||||
from ipalib import x509
|
||||
from ipapython.dn import DN
|
||||
|
||||
import pytest
|
||||
|
||||
pytestmark = pytest.mark.tier0
|
||||
|
||||
# certutil -
|
||||
|
@ -28,8 +28,6 @@ import six
|
||||
|
||||
from ipapython import ipautil
|
||||
|
||||
import pytest
|
||||
|
||||
pytestmark = pytest.mark.tier0
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user