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:
Martin Basti 2016-03-17 19:38:53 +01:00
parent 5add0f94cf
commit d46cd5d956
8 changed files with 3 additions and 12 deletions

View File

@ -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,

View File

@ -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()

View File

@ -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
"""

View File

@ -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")

View File

@ -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

View File

@ -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 -

View File

@ -28,8 +28,6 @@ import six
from ipapython import ipautil
import pytest
pytestmark = pytest.mark.tier0

View File

@ -40,7 +40,6 @@ disable=
redefine-in-handler,
redefined-builtin,
redefined-outer-name,
reimported,
relative-import,
super-init-not-called,
undefined-loop-variable,