From ea16d6fefab2ddcf9835b766d648a0aebc465938 Mon Sep 17 00:00:00 2001 From: shekhar-cis Date: Tue, 25 Jan 2022 13:04:18 +0530 Subject: [PATCH] Override the pylint checks --- src/bmconfigparser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bmconfigparser.py b/src/bmconfigparser.py index 4798dda4..8bc425c8 100644 --- a/src/bmconfigparser.py +++ b/src/bmconfigparser.py @@ -69,6 +69,7 @@ class BMConfigParser(SafeConfigParser): raise ValueError("Invalid value %s" % value) return SafeConfigParser.set(self, section, option, value) + # pylint: disable=redefined-builtin, too-many-return-statements def get(self, section, option, raw=False, vars=None): if sys.version_info[0] == 3: # pylint: disable=arguments-differ @@ -187,7 +188,7 @@ class BMConfigParser(SafeConfigParser): try: if not self.validate( section, option, - self[section][option] + self[section][option] # pylint: disable=unsubscriptable-object ): try: newVal = BMConfigDefaults[section][option]