stfu pylint
This commit is contained in:
4
calc.py
4
calc.py
@@ -25,8 +25,8 @@ def calc(text):
|
|||||||
break
|
break
|
||||||
if should_calc and not any(op in expression for op in ignore_operators):
|
if should_calc and not any(op in expression for op in ignore_operators):
|
||||||
try:
|
try:
|
||||||
result = str(eval(expression))
|
result = str(eval(expression)) # pylint: disable = W0123
|
||||||
except:
|
except: # pylint: disable = W0702
|
||||||
# we can run into all kinds of errors here
|
# we can run into all kinds of errors here
|
||||||
# most probably SyntaxError
|
# most probably SyntaxError
|
||||||
return None
|
return None
|
||||||
|
|||||||
Reference in New Issue
Block a user