Commit 1b47ee47 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

avoid raw-f-string

parent c659887d
Pipeline #3788 passed with stage
in 25 seconds
...@@ -266,7 +266,7 @@ class Project(Links, NamedModel, TimeStampedModel): ...@@ -266,7 +266,7 @@ class Project(Links, NamedModel, TimeStampedModel):
with filename.open() as f: with filename.open() as f:
content = f.read() content = f.read()
for key, value in CMAKE_FIELDS.items(): for key, value in CMAKE_FIELDS.items():
search = re.search(fr'set\s*\(\s*project_{key}\s+([^)]+)*\)', content, re.I) search = re.search(r'set\s*\(\s*project_%s\s+([^)]+)*\)' % key, content, re.I)
if search: if search:
try: try:
old = getattr(self, value) old = getattr(self, value)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment