From 20ebf4527171231d07cd3a5d86479cd409ce21e6 Mon Sep 17 00:00:00 2001 From: Salvo 'LtWorf' Tomaselli Date: Wed, 9 Sep 2015 17:31:02 +0200 Subject: [PATCH] Parser cleanup The new method works fine to parse also unary operators. This commit removes the special case. --- relational/parser.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/relational/parser.py b/relational/parser.py index 4fdc065..340f959 100644 --- a/relational/parser.py +++ b/relational/parser.py @@ -337,9 +337,6 @@ def tokenize(expression): # Inserting parameter of the operator expression = expression[ par:].strip() # Removing parameter from the expression - elif expression.startswith((DIVISION, INTERSECTION, UNION, PRODUCT, DIFFERENCE, JOIN, JOIN_LEFT, JOIN_RIGHT, JOIN_FULL)): - items.append(expression[0]) - expression = expression[1:].strip() # 1 char from the expression else: # Relation (hopefully) expression+=' ' #To avoid the special case of the ending