From bc385fa02c767b49fcc634af3266cfbcd21f4d3b Mon Sep 17 00:00:00 2001 From: Michael Hanselmann <hansmi@google.com> Date: Fri, 1 Apr 2011 14:16:33 +0200 Subject: [PATCH] qlang: Remove OP_GLOB operator MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It'll be implemented using OP_REGEXP by the parser. Signed-off-by: Michael Hanselmann <hansmi@google.com> Reviewed-by: RenΓ© Nussbaumer <rn@google.com> --- lib/qlang.py | 1 - lib/query.py | 1 - 2 files changed, 2 deletions(-) diff --git a/lib/qlang.py b/lib/qlang.py index 6508cf451..ef1ee4675 100644 --- a/lib/qlang.py +++ b/lib/qlang.py @@ -46,7 +46,6 @@ OP_TRUE = "?" # operator-specific value OP_EQUAL = "=" OP_NOT_EQUAL = "!=" -OP_GLOB = "=*" OP_REGEXP = "=~" OP_CONTAINS = "=[]" diff --git a/lib/query.py b/lib/query.py index 79441a840..92b8175b4 100644 --- a/lib/query.py +++ b/lib/query.py @@ -390,7 +390,6 @@ class _FilterCompilerHelper: qlang.OP_NOT_EQUAL: (_OPTYPE_BINARY, [(flags, compat.partial(_WrapNot, fn), valprepfn) for (flags, fn, valprepfn) in _EQUALITY_CHECKS]), - qlang.OP_GLOB: (_OPTYPE_BINARY, NotImplemented), qlang.OP_REGEXP: (_OPTYPE_BINARY, [ (None, lambda lhs, rhs: rhs.search(lhs), _PrepareRegex), ]), -- GitLab