lgtm: Actually supress the Non-standard exception warning

pull/6299/head
Daniel Mensinger 5 years ago committed by Michael Hirsch, Ph.D
parent e21f5959a5
commit f1971fed90
  1. 12
      mesonbuild/compilers/compilers.py
  2. 8
      mesonbuild/interpreter.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])

@ -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,

Loading…
Cancel
Save