diff --git a/daemons/dnssec/ipa-dnskeysyncd.in b/daemons/dnssec/ipa-dnskeysyncd.in index 91e0e43ce..3b3aa9134 100644 --- a/daemons/dnssec/ipa-dnskeysyncd.in +++ b/daemons/dnssec/ipa-dnskeysyncd.in @@ -57,7 +57,7 @@ KEYTAB_FB = paths.IPA_DNSKEYSYNCD_KEYTAB def commenceShutdown(signum, stack): # Declare the needed global variables global watcher_running - global ldap_connection # pylint: disable=global-variable-not-assigned + global ldap_connection logger.info('Signal %s received: Shutting down!', signum) diff --git a/install/tools/ipa-compat-manage.in b/install/tools/ipa-compat-manage.in index 1f76eb5f8..459f39fc8 100644 --- a/install/tools/ipa-compat-manage.in +++ b/install/tools/ipa-compat-manage.in @@ -132,7 +132,6 @@ def main(): print("Enabling plugin") # https://github.com/PyCQA/pylint/issues/872 - # pylint: disable=unsupported-assignment-operation if entry is None: ld = LDAPUpdate() if not ld.update(files): @@ -141,7 +140,6 @@ def main(): else: entry['nsslapd-pluginenabled'] = ['on'] api.Backend.ldap2.update_entry(entry) - # pylint: enable=unsupported-assignment-operation except errors.ExecutionError as lde: print("An error occurred while talking to the server.") print(lde) @@ -171,9 +169,7 @@ def main(): else: print("Disabling plugin") - # pylint: disable=unsupported-assignment-operation entry['nsslapd-pluginenabled'] = ['off'] - # pylint: enable=unsupported-assignment-operation api.Backend.ldap2.update_entry(entry) except errors.DatabaseError as dbe: print("An error occurred while talking to the server.") diff --git a/install/tools/ipa-nis-manage.in b/install/tools/ipa-nis-manage.in index 767217266..6b156ce6a 100644 --- a/install/tools/ipa-nis-manage.in +++ b/install/tools/ipa-nis-manage.in @@ -155,9 +155,7 @@ def main(): elif entry.get('nsslapd-pluginenabled', [''])[0].lower() == 'off': print("Enabling plugin") # Already configured, just enable the plugin - # pylint: disable=unsupported-assignment-operation entry['nsslapd-pluginenabled'] = ['on'] - # pylint: enable=unsupported-assignment-operation api.Backend.ldap2.update_entry(entry) else: print("Plugin already Enabled") diff --git a/ipalib/base.py b/ipalib/base.py index d8f9ee728..2970bb188 100644 --- a/ipalib/base.py +++ b/ipalib/base.py @@ -469,7 +469,7 @@ class NameSpace(ReadOnly): if isinstance(key, str): return self.__map[key] if type(key) in (int, slice): - return self.__members[key] # pylint: disable=invalid-sequence-index + return self.__members[key] raise TypeError( TYPE_ERROR % ('key', (str, int, slice, 'object with __name__'), key, type(key)) diff --git a/ipaserver/custodia/plugin.py b/ipaserver/custodia/plugin.py index c3d6fc6f0..bdf949af9 100644 --- a/ipaserver/custodia/plugin.py +++ b/ipaserver/custodia/plugin.py @@ -93,7 +93,6 @@ class OptionHandler: raise ValueError(typ) self.seen.add(name) - # pylint: disable=not-callable if not self.parser.has_option(self.section, name): if default is REQUIRED: raise NameError(self.section, name) @@ -103,7 +102,6 @@ class OptionHandler: # the default, e.g. pw_uid with default='root' returns 0. return handler(self.section, name, default) - # pylint: enable=not-callable def check_surplus(self): surplus = [] diff --git a/ipaserver/install/ldapupdate.py b/ipaserver/install/ldapupdate.py index a307942c4..cd20d1fc9 100644 --- a/ipaserver/install/ldapupdate.py +++ b/ipaserver/install/ldapupdate.py @@ -32,7 +32,7 @@ import os import fnmatch import warnings -from pysss_murmur import murmurhash3 # pylint: disable=no-name-in-module +from pysss_murmur import murmurhash3 import six from ipapython import ipautil, ipaldap diff --git a/ipatests/test_ipaserver/test_secure_ajp_connector.py b/ipatests/test_ipaserver/test_secure_ajp_connector.py index 544cf0440..c3ab74628 100644 --- a/ipatests/test_ipaserver/test_secure_ajp_connector.py +++ b/ipatests/test_ipaserver/test_secure_ajp_connector.py @@ -2,7 +2,7 @@ from collections import namedtuple from io import BytesIO -from lxml.etree import parse as myparse # pylint: disable=no-name-in-module +from lxml.etree import parse as myparse import pytest import textwrap from unittest.mock import mock_open, patch