diff options
author | Christian Heimes <cheimes@redhat.com> | 2016-11-23 11:10:16 +0100 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-11-25 16:18:22 +0100 |
commit | fef6f18aa27c3c5286c48dce4419db6ff9ac967b (patch) | |
tree | b0c6fcecfa3cf0ad8b7dc77e229ae3acede278ff | |
parent | 7fef9cbec725beed62eb425449083c59416ed975 (diff) | |
download | freeipa-fef6f18aa27c3c5286c48dce4419db6ff9ac967b.tar.gz freeipa-fef6f18aa27c3c5286c48dce4419db6ff9ac967b.tar.xz freeipa-fef6f18aa27c3c5286c48dce4419db6ff9ac967b.zip |
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>
-rw-r--r-- | ipaserver/dcerpc.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ipaserver/dcerpc.py b/ipaserver/dcerpc.py index 508bfabdc..097637f75 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 |