mirror of
https://github.com/peridotbuild/pv2.git
synced 2024-11-21 12:41:26 +00:00
importer: Resolve invalid escape sequence on newer python
Signed-off-by: Louis Abel <label@rockylinux.org>
This commit is contained in:
parent
c2297d6189
commit
7f2004719a
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user