summaryrefslogtreecommitdiff
path: root/python/vyos/utils
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2024-06-15 21:02:39 -0500
committerJohn Estabrook <jestabro@vyos.io>2024-06-26 15:38:41 -0500
commit23356ee435344d8e9272f3a8a2273e00e7fca3ad (patch)
treedcfce2209b114fc81f8deede90ae3733ca6469ba /python/vyos/utils
parent8e633a944aa64f8507afc85e0b548cc0b1ed997a (diff)
downloadvyos-1x-23356ee435344d8e9272f3a8a2273e00e7fca3ad.tar.gz
vyos-1x-23356ee435344d8e9272f3a8a2273e00e7fca3ad.zip
vyos.utils.dict: T5195: fix syntax warning
Diffstat (limited to 'python/vyos/utils')
-rw-r--r--python/vyos/utils/dict.py2
1 files changed, 1 insertions, 1 deletions
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)