From fef6f18aa27c3c5286c48dce4419db6ff9ac967b Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Nov 25 2016 15:18:22 +0000 Subject: 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 Reviewed-By: Martin Basti --- diff --git a/ipaserver/dcerpc.py b/ipaserver/dcerpc.py index 508bfab..097637f 100644 --- a/ipaserver/dcerpc.py +++ b/ipaserver/dcerpc.py @@ -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