pylint: Fix deprecated-class
There is no actual usage of deprecated classes for Python3. Pylint complains about such for Python2. Since Python2 is no longer supported these imports were removed. Fixes: https://pagure.io/freeipa/issue/9117 Signed-off-by: Stanislav Levin <slev@altlinux.org> Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
1 parent
0ebf09e061
commit
ccf9334da9
8 files changed
+8
-61
No files matched your search
@@ -53,12 +53,7 @@ from ipapython.dn import DN, RDN
|
||||
from ipapython.dnsutil import DNSName
|
||||
from ipapython.kerberos import Principal
|
||||
|
||||
# pylint: disable=no-name-in-module, import-error
|
||||
if six.PY3:
|
||||
from collections.abc import MutableMapping
|
||||
else:
|
||||
from collections import MutableMapping
|
||||
# pylint: enable=no-name-in-module, import-error
|
||||
from collections.abc import MutableMapping
|
||||
|
||||
if six.PY3:
|
||||
unicode = str
|
||||
|
||||
Reference in new issue
Block a user