X-Git-Url: https://git.phdru.name/?p=phdru.name%2Fcgi-bin%2Fblog-ru%2Fsearch-tags.git;a=blobdiff_plain;f=tags.py;h=44f1a070d02b08c02e9b1f265ba9ec8095bd5fb5;hp=dec88988ffca1bdc18b68e7e0724bbfd07a7b09a;hb=refs%2Fheads%2Fgrako;hpb=3d1095e88653ea5e0c999ba65ad6406163ecc447 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")