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-10-24 14:11:08 +02:00
committed by David Kupka
parent 1077743d90
commit 0d370a959b
30 changed files with 76 additions and 25 deletions
+2
View File
@@ -34,8 +34,10 @@ from os import path
import sys
import six
# pylint: disable=import-error
from six.moves.urllib.parse import urlparse, urlunparse
from six.moves.configparser import RawConfigParser, ParsingError
# pylint: enable=import-error
from ipapython.dn import DN
from ipalib.base import check_name
+3 -1
View File
@@ -103,9 +103,11 @@ import re
import decimal
import base64
import datetime
from six.moves.xmlrpc_client import MAXINT, MININT
import six
# pylint: disable=import-error
from six.moves.xmlrpc_client import MAXINT, MININT
# pylint: enable=import-error
from ipalib.text import _ as ugettext
from ipalib.base import check_name
+1
View File
@@ -76,6 +76,7 @@ try:
from xmlrpclib import (Binary, Fault, DateTime, dumps, loads, ServerProxy,
Transport, ProtocolError, MININT, MAXINT)
except ImportError:
# pylint: disable=import-error
from xmlrpc.client import (Binary, Fault, DateTime, dumps, loads, ServerProxy,
Transport, ProtocolError, MININT, MAXINT)