From 00834fe4a07711381989e47cb4cb12fe3be7fc36 Mon Sep 17 00:00:00 2001 From: vitja Date: Thu, 3 Aug 2023 17:08:21 +0300 Subject: Fix incorrect python string warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit вызывает вот такое вот предупреждение: ``` /home/vitja/arcadia/library/python/testing/filter/filter.py:10: DeprecationWarning: invalid escape sequence '\w' PARSE_TAG_RE = re.compile("([+-]?[\w:]*)") ``` --- library/python/testing/filter/filter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'library/python/testing') diff --git a/library/python/testing/filter/filter.py b/library/python/testing/filter/filter.py index a1642bd052f..4075c67a5a9 100644 --- a/library/python/testing/filter/filter.py +++ b/library/python/testing/filter/filter.py @@ -7,7 +7,7 @@ import logging logger = logging.getLogger(__name__) TEST_SUBTEST_SEPARATOR = '::' -PARSE_TAG_RE = re.compile("([+-]?[\w:]*)") +PARSE_TAG_RE = re.compile(r"([+-]?[\w:]*)") class FilterException(Exception): -- cgit v1.3