mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Silence import warnings for Samba bindings
Python 3 Samba bindings are not available yet. Let's silence the warnings to make pylint pass under Python 3. https://fedorahosted.org/freeipa/ticket/4985 Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
parent
7fef9cbec7
commit
fef6f18aa2
@ -35,13 +35,18 @@ from ipalib.util import normalize_name
|
||||
|
||||
import os
|
||||
import struct
|
||||
import random
|
||||
|
||||
# TODO: Remove pylint disable when Python 3 bindings are available.
|
||||
# pylint: disable=import-error
|
||||
from samba import param
|
||||
from samba import credentials
|
||||
from samba.dcerpc import security, lsa, drsblobs, nbt, netlogon
|
||||
from samba.ndr import ndr_pack, ndr_print
|
||||
from samba import net
|
||||
import samba
|
||||
import random
|
||||
# pylint: enable=import-error
|
||||
|
||||
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms
|
||||
from cryptography.hazmat.backends import default_backend
|
||||
import ldap as _ldap
|
||||
|
Loading…
Reference in New Issue
Block a user