From 7f2004719ab875e76fab451a080be9fc0c48aee6 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Fri, 8 Mar 2024 19:12:50 -0700 Subject: [PATCH] importer: Resolve invalid escape sequence on newer python Signed-off-by: Louis Abel --- pv2/importer/operation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pv2/importer/operation.py b/pv2/importer/operation.py index c944df4..588177a 100644 --- a/pv2/importer/operation.py +++ b/pv2/importer/operation.py @@ -1143,7 +1143,7 @@ class ModuleImport(Import): with open(modulemd_file, 'r') as module_yaml: content = module_yaml.read() - content_new = re.sub('ref:\s+(.*)', f'ref: {dest_branch}', content) + content_new = re.sub(r'ref:\s+(.*)', f'ref: {dest_branch}', content) module_yaml.close() # Write to the root