summaryrefslogtreecommitdiffstats
path: root/ipapython
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2016-02-25 13:46:33 +0100
committerTomas Babej <tbabej@redhat.com>2016-03-02 14:57:36 +0100
commit72d5499c5a902c860c5496ee6e604526672e5777 (patch)
tree254cab47fdfe006362f3b67b492c6ade8d546b26 /ipapython
parentc68e9510d03abb75d353e209ea32ac9d1ed362bc (diff)
downloadfreeipa-72d5499c5a902c860c5496ee6e604526672e5777.tar.gz
freeipa-72d5499c5a902c860c5496ee6e604526672e5777.tar.xz
freeipa-72d5499c5a902c860c5496ee6e604526672e5777.zip
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 <dkupka@redhat.com>
Diffstat (limited to 'ipapython')
-rw-r--r--ipapython/ipaldap.py2
-rw-r--r--ipapython/ipautil.py2
-rw-r--r--ipapython/nsslib.py7
3 files changed, 7 insertions, 4 deletions
diff --git a/ipapython/ipaldap.py b/ipapython/ipaldap.py
index 7522c504b..2965ba4a5 100644
--- a/ipapython/ipaldap.py
+++ b/ipapython/ipaldap.py
@@ -208,7 +208,7 @@ class LDAPEntry(collections.MutableMapping):
Keyword arguments can be used to override values of specific attributes.
"""
- super(LDAPEntry, self).__init__()
+ super(LDAPEntry, self).__init__() # pylint: disable=no-member
if isinstance(_conn, LDAPEntry):
assert _dn is None
diff --git a/ipapython/ipautil.py b/ipapython/ipautil.py
index 6d07e07a0..336693c3f 100644
--- a/ipapython/ipautil.py
+++ b/ipapython/ipautil.py
@@ -1441,7 +1441,7 @@ def kinit_keytab(principal, keytab, ccache_name, config=None, attempts=1):
% (attempt, attempts))
return cred
except gssapi.exceptions.GSSError as e:
- if e.min_code not in errors_to_retry:
+ if e.min_code not in errors_to_retry: # pylint: disable=no-member
raise
root_logger.debug("Attempt %d/%d: failed: %s"
% (attempt, attempts, e))
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