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