summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2024-06-15 21:02:39 -0500
committerJohn Estabrook <jestabro@vyos.io>2024-09-11 11:07:20 -0500
commit461195c5046da1013a0cb201da917c41daf6f0dc (patch)
treed1eb769ff03ee40cd112ff938206941e1a841e76 /python
parentc6d44e0b0005cc7f38ea5e8d183e94bb49400789 (diff)
downloadvyos-1x-461195c5046da1013a0cb201da917c41daf6f0dc.tar.gz
vyos-1x-461195c5046da1013a0cb201da917c41daf6f0dc.zip
vyos.utils.dict: T5195: fix syntax warning
(cherry picked from commit 23356ee435344d8e9272f3a8a2273e00e7fca3ad)
Diffstat (limited to 'python')
-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 9a4671c5f..1a7a6b96f 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)