aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2019-12-04 13:22:45 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2019-12-05 00:22:10 +0200
commit454e323d3d3e93dffb01e0b130a0784165853ecc (patch)
tree0e62f745ffdbd4e5fa67cd143b0b5df7c687098c
parentfa4de71faf28d039432ecd28a9965675b794a932 (diff)
downloadmeson-454e323d3d3e93dffb01e0b130a0784165853ecc.zip
meson-454e323d3d3e93dffb01e0b130a0784165853ecc.tar.gz
meson-454e323d3d3e93dffb01e0b130a0784165853ecc.tar.bz2
lgtm: ignore Non-standard exception raised in special method
-rw-r--r--mesonbuild/compilers/compilers.py6
-rw-r--r--mesonbuild/interpreter.py4
2 files changed, 5 insertions, 5 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index 3400c48..14e6f2d 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 7388e91..c431b93 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,