From 0f00cb45f01b1fc90aead2f06d6aa5ac7a02364b Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Thu, 26 Jan 2023 16:18:40 -0600 Subject: config-mgmt: T4962: add missing flag re.MULTILINE --- python/vyos/config_mgmt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/vyos/config_mgmt.py b/python/vyos/config_mgmt.py index 772c62631..22a49ff50 100644 --- a/python/vyos/config_mgmt.py +++ b/python/vyos/config_mgmt.py @@ -428,7 +428,7 @@ Proceed ?''' # @staticmethod def _strip_version(s): - return re.split(r'(^//)', s)[0] + return re.split(r'(^//)', s, maxsplit=1, flags=re.MULTILINE)[0] def _get_saved_config_tree(self): with open(config_file) as f: -- cgit v1.2.3