aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2019-12-05 12:27:01 +0100
committerMichael Hirsch, Ph.D <10931741+scivision@users.noreply.github.com>2019-12-05 11:08:12 -0500
commitf1971fed908f5a6e181e5a864f8177b16587d2de (patch)
tree8870a4e931498a22c52f02c58acb5847021d01aa /mesonbuild
parente21f5959a5965622fa57755b14e82638a42dde3c (diff)
downloadmeson-f1971fed908f5a6e181e5a864f8177b16587d2de.zip
meson-f1971fed908f5a6e181e5a864f8177b16587d2de.tar.gz
meson-f1971fed908f5a6e181e5a864f8177b16587d2de.tar.bz2
lgtm: Actually supress the Non-standard exception warning
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/compilers/compilers.py12
-rw-r--r--mesonbuild/interpreter.py8
2 files changed, 10 insertions, 10 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index 14e6f2d..90a2b81 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -645,14 +645,14 @@ class CompilerArgs(list):
new += self
return new
- def __mul__(self, args):
- raise TypeError("can't multiply compiler arguments") # lgtm[py/unexpected-raise-in-special-method]
+ def __mul__(self, args): # lgtm[py/unexpected-raise-in-special-method]
+ raise TypeError("can't multiply compiler arguments")
- def __imul__(self, args):
- raise TypeError("can't multiply compiler arguments") # lgtm[py/unexpected-raise-in-special-method]
+ def __imul__(self, args): # lgtm[py/unexpected-raise-in-special-method]
+ raise TypeError("can't multiply compiler arguments")
- def __rmul__(self, args):
- raise TypeError("can't multiply compiler arguments") # lgtm[py/unexpected-raise-in-special-method]
+ def __rmul__(self, args): # lgtm[py/unexpected-raise-in-special-method]
+ raise TypeError("can't multiply compiler arguments")
def append(self, arg):
self.__iadd__([arg])
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py
index c431b93..c6d4ec7 100644
--- a/mesonbuild/interpreter.py
+++ b/mesonbuild/interpreter.py
@@ -882,11 +882,11 @@ class CustomTargetHolder(TargetHolder):
def __getitem__(self, index):
return CustomTargetIndexHolder(self.held_object[index])
- def __setitem__(self, index, value):
- raise InterpreterException('Cannot set a member of a CustomTarget') # lgtm[py/unexpected-raise-in-special-method]
+ def __setitem__(self, index, value): # lgtm[py/unexpected-raise-in-special-method]
+ raise InterpreterException('Cannot set a member of a CustomTarget')
- def __delitem__(self, index):
- raise InterpreterException('Cannot delete a member of a CustomTarget') # lgtm[py/unexpected-raise-in-special-method]
+ def __delitem__(self, index): # lgtm[py/unexpected-raise-in-special-method]
+ raise InterpreterException('Cannot delete a member of a CustomTarget')
def outdir_include(self):
return IncludeDirsHolder(build.IncludeDirs('', [], False,