From c6dd5ce4a982bb50e6b155501072889149dec756 Mon Sep 17 00:00:00 2001 From: jomo Date: Sat, 10 Jan 2015 00:37:03 +0100 Subject: add >, <, ~ and % operators to calc --- calc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'calc.py') diff --git a/calc.py b/calc.py index 0a3cc44..aa57294 100644 --- a/calc.py +++ b/calc.py @@ -1,7 +1,7 @@ from helpers import * calc_users = open_json_file("calc", []) -math_operators = ["+", "-", "*", "/", "&", "|"] +math_operators = ["+", "-", "*", "/", "&", "|", ">", "<", "~", "%"] ignore_operators = ["**", "&&", "||"] # ** may be too intensive, the others cause syntax errors calc_perm = "utils.calc" -- cgit v1.2.3