From: Oleg Broytman Date: Fri, 6 Jun 2014 15:40:01 +0000 (+0400) Subject: Process expression in parentheses X-Git-Tag: v0.2~5 X-Git-Url: https://git.phdru.name/?p=phdru.name%2Fcgi-bin%2Fblog-ru%2Fsearch-tags.git;a=commitdiff_plain;h=4db3d647a8c4f9a921900fec0441c7047c78f1df Process expression in parentheses --- diff --git a/tags.py b/tags.py index dec8898..44f1a07 100644 --- a/tags.py +++ b/tags.py @@ -45,6 +45,8 @@ def _test_post(post, tree): return value1 or value2 elif op == 'NOT': return not _test_post(post, tree[1]) + elif op == 'PARENS': + return _test_post(post, tree[1]) else: raise ValueError("Cannot get there")