From 72d5499c5a902c860c5496ee6e604526672e5777 Mon Sep 17 00:00:00 2001 From: Martin Basti Date: Thu, 25 Feb 2016 13:46:33 +0100 Subject: pylint: supress false positive no-member errors pylint 1.5 prints many false positive no-member errors which are supressed by this commit. https://fedorahosted.org/freeipa/ticket/5615 Reviewed-By: David Kupka --- ipapython/nsslib.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ipapython/nsslib.py') diff --git a/ipapython/nsslib.py b/ipapython/nsslib.py index ff4c02328..16aa1d9a4 100644 --- a/ipapython/nsslib.py +++ b/ipapython/nsslib.py @@ -63,7 +63,9 @@ def auth_certificate_callback(sock, check_sig, is_server, certdb): # and the strerror attribute will contain a string describing the reason. approved_usage = cert.verify_now(certdb, check_sig, intended_usage, *pin_args) except Exception as e: - root_logger.error('cert validation failed for "%s" (%s)', cert.subject, e.strerror) + root_logger.error( + 'cert validation failed for "%s" (%s)', cert.subject, + e.strerror) # pylint: disable=no-member cert_is_valid = False return cert_is_valid @@ -93,7 +95,8 @@ def auth_certificate_callback(sock, check_sig, is_server, certdb): cert_is_valid = cert.verify_hostname(hostname) except Exception as e: root_logger.error('failed verifying socket hostname "%s" matches cert subject "%s" (%s)', - hostname, cert.subject, e.strerror) + hostname, cert.subject, + e.strerror) # pylint: disable=no-member cert_is_valid = False return cert_is_valid -- cgit