summaryrefslogtreecommitdiff
path: root/calc.py
diff options
context:
space:
mode:
authorjomo <github@jomo.tv>2015-01-02 01:39:43 +0100
committerjomo <github@jomo.tv>2015-01-02 01:39:43 +0100
commit6ec7ad23ed1f2d042355eea727a43b95403354fd (patch)
treed77da96fa1526fe8f85e5902e5cc7ef5d4d039c2 /calc.py
parent9110fc2eda3a0018f164510f8ef840969c4d6b75 (diff)
stfu pylint
Diffstat (limited to 'calc.py')
-rw-r--r--calc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/calc.py b/calc.py
index 67df074..4cf6050 100644
--- a/calc.py
+++ b/calc.py
@@ -25,8 +25,8 @@ def calc(text):
break
if should_calc and not any(op in expression for op in ignore_operators):
try:
- result = str(eval(expression))
- except:
+ result = str(eval(expression)) # pylint: disable = W0123
+ except: # pylint: disable = W0702
# we can run into all kinds of errors here
# most probably SyntaxError
return None