From cc81d69917c79b90da14a729a1e5a48eeff39590 Mon Sep 17 00:00:00 2001 From: Mehdi Abaakouk Date: Thu, 3 Sep 2015 15:37:29 +0200 Subject: [PATCH] Allow quoted string with ' in query parser --- gnocchiclient/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnocchiclient/utils.py b/gnocchiclient/utils.py index fad823c..1c0af96 100644 --- a/gnocchiclient/utils.py +++ b/gnocchiclient/utils.py @@ -31,7 +31,7 @@ uuid = pp.Combine(hex_string(8) + ("-" + hex_string(4)) * 3 + number = r"[+-]?\d+(:?\.\d*)?(:?[eE][+-]?\d+)?" number = pp.Regex(number).setParseAction(lambda t: float(t[0])) identifier = pp.Word(pp.alphas, pp.alphanums + "_") -quoted_string = pp.QuotedString('"') +quoted_string = pp.QuotedString('"') | pp.QuotedString("'") comparison_term = pp.Forward() in_list = pp.Group(pp.Suppress('[') + pp.Optional(pp.delimitedList(comparison_term)) +