mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-15 23:42:41 +00:00
Fix pylint issues
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
parent
c659c1b164
commit
daf807f02d
@ -52,7 +52,6 @@ class Config:
|
|||||||
name to become set.
|
name to become set.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.settings = {}
|
self.settings = {}
|
||||||
|
|
||||||
@ -66,11 +65,11 @@ class Config:
|
|||||||
|
|
||||||
def all(self, *names):
|
def all(self, *names):
|
||||||
"""True if all the elements of names are active (i.e. set)."""
|
"""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):
|
def any(self, *names):
|
||||||
"""True if at least one symbol in names are active (i.e. set)."""
|
"""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):
|
def known(self, name):
|
||||||
"""True if a #define for name is present, whether it's commented out or not."""
|
"""True if a #define for name is present, whether it's commented out or not."""
|
||||||
@ -715,6 +714,7 @@ class CombinedConfig(Config):
|
|||||||
|
|
||||||
super().set(name, value, configfile)
|
super().set(name, value, configfile)
|
||||||
|
|
||||||
|
#pylint: disable=arguments-differ
|
||||||
def write(self, mbedtls_file=None, crypto_file=None):
|
def write(self, mbedtls_file=None, crypto_file=None):
|
||||||
"""Write the whole configuration to the file it was read from.
|
"""Write the whole configuration to the file it was read from.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user