Skip to content

Commit b86dcc2

Browse files
committed
[IMP] util/domains: hide deprecation warnings
This is noise in the upgrade logs since we intentionally use the tools from `expression`. closes #204 Signed-off-by: Christophe Simonis (chs) <[email protected]>
1 parent bb9a205 commit b86dcc2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/util/domains.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import functools
44
import logging
55
import re
6+
import warnings
67

78
import lxml
89

@@ -92,6 +93,7 @@ def is_leaf(leaf):
9293
AND_OPERATOR = expression.AND_OPERATOR
9394
OR_OPERATOR = expression.OR_OPERATOR
9495
DOMAIN_OPERATORS = expression.DOMAIN_OPERATORS
96+
warnings.filterwarnings("ignore", message=r"Since 19\.0, use Domain\(\) object", category=DeprecationWarning)
9597
normalize_domain = expression.normalize_domain
9698
normalize_leaf = expression.normalize_leaf
9799
is_leaf = expression.is_leaf

0 commit comments

Comments
 (0)