pylint: enable the import-error check

Check for import errors with pylint to make sure new python package
dependencies are not overlooked.

https://fedorahosted.org/freeipa/ticket/6418

Reviewed-By: Petr Spacek <pspacek@redhat.com>
Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
Jan Cholasta
2016-08-24 13:37:30 +02:00
committed by David Kupka
parent 1077743d90
commit 0d370a959b
30 changed files with 76 additions and 25 deletions

View File

@@ -39,8 +39,10 @@ import xml.dom.minidom
import shlex
import pipes
# pylint: disable=import-error
from six.moves import urllib
from six.moves.configparser import ConfigParser, RawConfigParser
# pylint: enable=import-error
from ipalib import api
from ipalib import pkcs10, x509
@@ -79,6 +81,7 @@ from ipaserver.plugins import ldap2
try:
import httplib
except ImportError:
# pylint: disable=import-error
import http.client as httplib
# We need to reset the template because the CA uses the regular boot