From 757196b63dc44ee015a048d4c926ceff7dc82686 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 23 Dec 2012 06:02:50 +0100 Subject: allow C and ! as alternatives to ~ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- sets.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sets.py b/sets.py index 0f9e57f..af0cd4e 100644 --- a/sets.py +++ b/sets.py @@ -108,6 +108,7 @@ if len(next.elems) > 0: formula = sys.argv[1] formula = formula.replace('\\', '-').replace('*', '&').replace('+', '|') +formula = formula.replace('C', '~').replace('!', '~') for i in range(0, 10): formula = formula.replace('%i' % i, 'sets[%i]' % i) -- cgit v1.2.3-70-g09d2