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:
Christian Heimes 2016-11-23 11:10:16 +01:00 committed by Martin Basti
parent 7fef9cbec7
commit fef6f18aa2

View File

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