]> git.phdru.name Git - phdru.name/cgi-bin/blog-ru/search-tags.git/commitdiff
Process expression in parentheses
authorOleg Broytman <phd@phdru.name>
Fri, 6 Jun 2014 15:40:01 +0000 (19:40 +0400)
committerOleg Broytman <phd@phdru.name>
Fri, 6 Jun 2014 15:40:01 +0000 (19:40 +0400)
tags.py

diff --git a/tags.py b/tags.py
index dec88988ffca1bdc18b68e7e0724bbfd07a7b09a..44f1a070d02b08c02e9b1f265ba9ec8095bd5fb5 100644 (file)
--- 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")