From 7fef9cbec725beed62eb425449083c59416ed975 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Wed, 23 Nov 2016 11:01:56 +0100 Subject: Fix Python 3 bugs discovered by pylint In Python 3 exception instances no longer have a message attribute. For most exceptions, str(e) or string formatting give the same result. Fix some renamed modules, module members and functions. https://fedorahosted.org/freeipa/ticket/4985 Signed-off-by: Christian Heimes Reviewed-By: Martin Basti --- ipapython/ipaldap.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ipapython/ipaldap.py') diff --git a/ipapython/ipaldap.py b/ipapython/ipaldap.py index bbfc6f619..94a5e1e0d 100644 --- a/ipapython/ipaldap.py +++ b/ipapython/ipaldap.py @@ -27,7 +27,10 @@ import contextlib import collections import os import pwd -from urlparse import urlparse + +# pylint: disable=import-error +from six.moves.urllib.parse import urlparse +# pylint: enable=import-error import ldap import ldap.sasl -- cgit