From 454e323d3d3e93dffb01e0b130a0784165853ecc Mon Sep 17 00:00:00 2001 From: Daniel Mensinger Date: Wed, 4 Dec 2019 13:22:45 +0100 Subject: [PATCH] lgtm: ignore Non-standard exception raised in special method --- mesonbuild/compilers/compilers.py | 6 +++--- mesonbuild/interpreter.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index 3400c48c2..14e6f2d45 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -646,13 +646,13 @@ class CompilerArgs(list): return new def __mul__(self, args): - raise TypeError("can't multiply compiler arguments") + raise TypeError("can't multiply compiler arguments") # lgtm[py/unexpected-raise-in-special-method] def __imul__(self, args): - raise TypeError("can't multiply compiler arguments") + raise TypeError("can't multiply compiler arguments") # lgtm[py/unexpected-raise-in-special-method] def __rmul__(self, args): - raise TypeError("can't multiply compiler arguments") + raise TypeError("can't multiply compiler arguments") # lgtm[py/unexpected-raise-in-special-method] def append(self, arg): self.__iadd__([arg]) diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py index 7388e91d6..c431b934c 100644 --- a/mesonbuild/interpreter.py +++ b/mesonbuild/interpreter.py @@ -883,10 +883,10 @@ class CustomTargetHolder(TargetHolder): return CustomTargetIndexHolder(self.held_object[index]) def __setitem__(self, index, value): - raise InterpreterException('Cannot set a member of a CustomTarget') + raise InterpreterException('Cannot set a member of a CustomTarget') # lgtm[py/unexpected-raise-in-special-method] def __delitem__(self, index): - raise InterpreterException('Cannot delete a member of a CustomTarget') + raise InterpreterException('Cannot delete a member of a CustomTarget') # lgtm[py/unexpected-raise-in-special-method] def outdir_include(self): return IncludeDirsHolder(build.IncludeDirs('', [], False,