importer: Resolve invalid escape sequence on newer python

Signed-off-by: Louis Abel <label@rockylinux.org>
This commit is contained in:
Louis Abel 2024-03-08 19:12:50 -07:00
parent c2297d6189
commit 7f2004719a
Signed by: label
GPG Key ID: 2A6975660E424560

View File

@ -1143,7 +1143,7 @@ class ModuleImport(Import):
with open(modulemd_file, 'r') as module_yaml: with open(modulemd_file, 'r') as module_yaml:
content = module_yaml.read() 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() module_yaml.close()
# Write to the root # Write to the root