diff --git a/Scripts/o2_linter.py b/Scripts/o2_linter.py index 4c4af52256c..2ae527a91e9 100644 --- a/Scripts/o2_linter.py +++ b/Scripts/o2_linter.py @@ -1207,9 +1207,9 @@ def test_file(self, path: str, content) -> bool: name_pwg = match.group(1) prefix_pwg = name_pwg.capitalize() if name_pwg in ("HF"): - base_struct_name = fr"{prefix_pwg}{base_struct_name}" # mandatory PWG prefix + base_struct_name = rf"{prefix_pwg}{base_struct_name}" # mandatory PWG prefix else: - base_struct_name = fr"({prefix_pwg})?{base_struct_name}" # optional PWG prefix + base_struct_name = rf"({prefix_pwg})?{base_struct_name}" # optional PWG prefix # print(f"For file {file_name} expecting to find {base_struct_name}.") struct_names = [] # actual struct names in the file for line in content: