Fix pylint issues
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
diff --git a/scripts/config.py b/scripts/config.py
index 7b815e4..89b05a6 100755
--- a/scripts/config.py
+++ b/scripts/config.py
@@ -52,7 +52,6 @@
name to become set.
"""
- # pylint: disable=unused-argument
def __init__(self):
self.settings = {}
@@ -66,11 +65,11 @@
def all(self, *names):
"""True if all the elements of names are active (i.e. set)."""
- return all(self.__contains__(name) for name in names)
+ return all(name in self for name in names)
def any(self, *names):
"""True if at least one symbol in names are active (i.e. set)."""
- return any(self.__contains__(name) for name in names)
+ return any(name in self for name in names)
def known(self, name):
"""True if a #define for name is present, whether it's commented out or not."""
@@ -715,6 +714,7 @@
super().set(name, value, configfile)
+ #pylint: disable=arguments-differ
def write(self, mbedtls_file=None, crypto_file=None):
"""Write the whole configuration to the file it was read from.