From 23356ee435344d8e9272f3a8a2273e00e7fca3ad Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Sat, 15 Jun 2024 21:02:39 -0500 Subject: vyos.utils.dict: T5195: fix syntax warning --- python/vyos/utils/dict.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/vyos/utils') diff --git a/python/vyos/utils/dict.py b/python/vyos/utils/dict.py index 062ab9c81..1eb6abcd5 100644 --- a/python/vyos/utils/dict.py +++ b/python/vyos/utils/dict.py @@ -34,7 +34,7 @@ def colon_separated_to_dict(data_string, uniquekeys=False): otherwise they are always lists of strings. """ import re - key_value_re = re.compile('([^:]+)\s*\:\s*(.*)') + key_value_re = re.compile(r'([^:]+)\s*\:\s*(.*)') data_raw = re.split('\n', data_string) -- cgit v1.2.3