From 0883285a4860686fa2d23bd05d8c6c3dd77b6d8d Mon Sep 17 00:00:00 2001 From: LtWorf Date: Sat, 4 Oct 2008 18:11:09 +0000 Subject: [PATCH] ok now REALLY works :-) git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@48 014f5005-505e-4b48-8d0a-63407b615a7c --- parser.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/parser.py b/parser.py index 5fa16af..7e2f11b 100644 --- a/parser.py +++ b/parser.py @@ -142,14 +142,17 @@ def parse_op(expr): quotes=expr.split('"'); - if (len(quotes)>1): - for i in range (0,len(quotes),2): - for j in symbols: - quotes[i]=quotes[i].replace(j,"_____%s_____"% (j)) - #The parts outside the quotes was parsed, put the string together again - expr= '"'.join(quotes) - + for i in range (0,len(quotes),2): + for j in symbols: + quotes[i]=quotes[i].replace(j,"_____%s_____"% (j)) + + + #The parts outside the quotes was parsed, put the string together again + if (len(quotes)>1): + expr= '"'.join(quotes) + else: + expr= quotes[0] tokens=expr.split("_____")