aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.pylintrc5
-rw-r--r--mesonbuild/interpreter/interpreterobjects.py2
2 files changed, 4 insertions, 3 deletions
diff --git a/.pylintrc b/.pylintrc
index bfa6d2f..31ac925 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -10,6 +10,7 @@ enable=
abstract-class-instantiated,
assert-on-tuple,
bad-indentation,
+ bare-except,
compare-to-zero,
dangerous-default-value,
deprecated-lambda,
@@ -22,5 +23,5 @@ enable=
singleton-comparison,
too-many-function-args,
unexpected-keyword-arg,
- unreachable,
- bare-except
+ unneeded-not,
+ unreachable
diff --git a/mesonbuild/interpreter/interpreterobjects.py b/mesonbuild/interpreter/interpreterobjects.py
index 262ff87..b0fe512 100644
--- a/mesonbuild/interpreter/interpreterobjects.py
+++ b/mesonbuild/interpreter/interpreterobjects.py
@@ -117,7 +117,7 @@ class FeatureOptionHolder(ObjectHolder[coredata.UserFeatureOption]):
@noPosargs
@noKwargs
def allowed_method(self, args: T.List[TYPE_var], kwargs: TYPE_kwargs) -> bool:
- return not self.value == 'disabled'
+ return self.value != 'disabled'
@noPosargs
@noKwargs