summaryrefslogtreecommitdiff
path: root/calc.py
diff options
context:
space:
mode:
authorGap <l.uisv.gt@icloud.com>2015-01-01 22:48:25 +0100
committerGap <l.uisv.gt@icloud.com>2015-01-01 22:48:25 +0100
commitdf24abbf62c6bbdeb033e22b0779df6610e59b17 (patch)
treec76ac3998d1bf20ff3d15913a55eef0107567354 /calc.py
parent1fd75516a9e6610b4ded696f2ade56ac0c9b095a (diff)
Removed debugging shit
Diffstat (limited to 'calc.py')
-rw-r--r--calc.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/calc.py b/calc.py
index a55af71..dee8925 100644
--- a/calc.py
+++ b/calc.py
@@ -30,21 +30,13 @@ def lex(msg):
tok += char
elif char.isalpha():
if expression:
- print("It is an expression")
msg = "".join(msg)
-
- print("Before evaluating: "+msg)
- print("Before evaluating (Token): "+tok)
- print("So that's str eval tok" +str(eval(tok)))
-
return_value = msg[0:startPos-1]
return_value += str(eval(tok))
return_value += msg[counter:]
- print("Evaluated it: "+msg)
expression = False
return return_value
else:
- print("It is NOT an expression - " + tok)
tok = ""
return fullmessage