Override the pylint checks
This commit is contained in:
parent
153b4dc1b2
commit
ea16d6fefa
|
@ -69,6 +69,7 @@ class BMConfigParser(SafeConfigParser):
|
||||||
raise ValueError("Invalid value %s" % value)
|
raise ValueError("Invalid value %s" % value)
|
||||||
return SafeConfigParser.set(self, section, option, 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):
|
def get(self, section, option, raw=False, vars=None):
|
||||||
if sys.version_info[0] == 3:
|
if sys.version_info[0] == 3:
|
||||||
# pylint: disable=arguments-differ
|
# pylint: disable=arguments-differ
|
||||||
|
@ -187,7 +188,7 @@ class BMConfigParser(SafeConfigParser):
|
||||||
try:
|
try:
|
||||||
if not self.validate(
|
if not self.validate(
|
||||||
section, option,
|
section, option,
|
||||||
self[section][option]
|
self[section][option] # pylint: disable=unsubscriptable-object
|
||||||
):
|
):
|
||||||
try:
|
try:
|
||||||
newVal = BMConfigDefaults[section][option]
|
newVal = BMConfigDefaults[section][option]
|
||||||
|
|
Reference in New Issue
Block a user