aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-12-23 06:02:50 +0100
committerMattias Andrée <maandree@operamail.com>2012-12-23 06:02:50 +0100
commit757196b63dc44ee015a048d4c926ceff7dc82686 (patch)
tree2ec28c041161f1db7785486f19e28181b592f2c6
parentderp (diff)
downloadsets-757196b63dc44ee015a048d4c926ceff7dc82686.tar.gz
sets-757196b63dc44ee015a048d4c926ceff7dc82686.tar.bz2
sets-757196b63dc44ee015a048d4c926ceff7dc82686.tar.xz
allow C and ! as alternatives to ~
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--sets.py1
1 files changed, 1 insertions, 0 deletions
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)