mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 23:50:03 -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 import errors
|
||||||
from ipalib.text import _
|
from ipalib.text import _
|
||||||
from ipapython.ipa_log_manager import root_logger, log_mgr
|
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 ipaplatform.paths import paths
|
||||||
from ipalib.krb_utils import (
|
from ipalib.krb_utils import (
|
||||||
krb5_parse_ccache,
|
krb5_parse_ccache,
|
||||||
|
@ -404,7 +404,6 @@ if __name__ == '__main__':
|
|||||||
# this can be run with:
|
# this can be run with:
|
||||||
# python ipalib/x509.py < /etc/ipa/ca.crt
|
# python ipalib/x509.py < /etc/ipa/ca.crt
|
||||||
|
|
||||||
from ipalib import api
|
|
||||||
api.bootstrap()
|
api.bootstrap()
|
||||||
api.finalize()
|
api.finalize()
|
||||||
|
|
||||||
|
@ -38,7 +38,6 @@ from ipaserver.install import installutils
|
|||||||
from ipapython import ipaldap
|
from ipapython import ipaldap
|
||||||
from ipalib.session import ISO8601_DATETIME_FMT
|
from ipalib.session import ISO8601_DATETIME_FMT
|
||||||
from ipalib.constants import CACERT
|
from ipalib.constants import CACERT
|
||||||
from six.moves.configparser import SafeConfigParser
|
|
||||||
from ipaplatform.tasks import tasks
|
from ipaplatform.tasks import tasks
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
@ -9,7 +9,6 @@ import stat
|
|||||||
import shutil
|
import shutil
|
||||||
from subprocess import CalledProcessError
|
from subprocess import CalledProcessError
|
||||||
|
|
||||||
from ipapython import p11helper as _ipap11helper
|
|
||||||
from ipaserver.install import service
|
from ipaserver.install import service
|
||||||
from ipaserver.install import installutils
|
from ipaserver.install import installutils
|
||||||
from ipapython.ipa_log_manager import root_logger
|
from ipapython.ipa_log_manager import root_logger
|
||||||
@ -245,7 +244,7 @@ class OpenDNSSECInstance(service.Service):
|
|||||||
pin = f.read()
|
pin = f.read()
|
||||||
|
|
||||||
os.environ["SOFTHSM2_CONF"] = paths.DNSSEC_SOFTHSM2_CONF
|
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:
|
try:
|
||||||
# generate master key
|
# generate master key
|
||||||
root_logger.debug("Creating master key")
|
root_logger.debug("Creating master key")
|
||||||
|
@ -253,7 +253,7 @@ from six.moves import urllib
|
|||||||
from ipalib import Backend
|
from ipalib import Backend
|
||||||
from ipapython.dn import DN
|
from ipapython.dn import DN
|
||||||
import ipapython.cookie
|
import ipapython.cookie
|
||||||
import ipapython.dogtag
|
from ipapython import dogtag
|
||||||
from ipapython import ipautil
|
from ipapython import ipautil
|
||||||
|
|
||||||
if six.PY3:
|
if six.PY3:
|
||||||
@ -1276,7 +1276,6 @@ import os, random
|
|||||||
from ipaserver.plugins import rabase
|
from ipaserver.plugins import rabase
|
||||||
from ipalib.constants import TYPE_ERROR
|
from ipalib.constants import TYPE_ERROR
|
||||||
from ipalib.util import cachedproperty
|
from ipalib.util import cachedproperty
|
||||||
from ipapython import dogtag
|
|
||||||
from ipalib import _
|
from ipalib import _
|
||||||
from ipaplatform.paths import paths
|
from ipaplatform.paths import paths
|
||||||
|
|
||||||
|
@ -29,8 +29,6 @@ from nss.error import NSPRError
|
|||||||
from ipalib import x509
|
from ipalib import x509
|
||||||
from ipapython.dn import DN
|
from ipapython.dn import DN
|
||||||
|
|
||||||
import pytest
|
|
||||||
|
|
||||||
pytestmark = pytest.mark.tier0
|
pytestmark = pytest.mark.tier0
|
||||||
|
|
||||||
# certutil -
|
# certutil -
|
||||||
|
@ -28,8 +28,6 @@ import six
|
|||||||
|
|
||||||
from ipapython import ipautil
|
from ipapython import ipautil
|
||||||
|
|
||||||
import pytest
|
|
||||||
|
|
||||||
pytestmark = pytest.mark.tier0
|
pytestmark = pytest.mark.tier0
|
||||||
|
|
||||||
|
|
||||||
|
1
pylintrc
1
pylintrc
@ -40,7 +40,6 @@ disable=
|
|||||||
redefine-in-handler,
|
redefine-in-handler,
|
||||||
redefined-builtin,
|
redefined-builtin,
|
||||||
redefined-outer-name,
|
redefined-outer-name,
|
||||||
reimported,
|
|
||||||
relative-import,
|
relative-import,
|
||||||
super-init-not-called,
|
super-init-not-called,
|
||||||
undefined-loop-variable,
|
undefined-loop-variable,
|
||||||
|
Loading…
Reference in New Issue
Block a user