mirror of
https://github.com/Kitware/CMake.git
synced 2026-06-24 08:47:59 +00:00
Utilities/Sphinx: Fix f-string formatting error
Versions of Python prior to 3.12 did not support nested quotes of the same type in f-strings (see PEP 701). Use double quotes inside the single-quote f-string.
This commit is contained in:
@@ -617,7 +617,7 @@ class CMakeOptionXRefRole(OptionXRefRole):
|
||||
super().__init__()
|
||||
|
||||
def __call__(self, typ, rawtext, text, *args, **kwargs):
|
||||
content = f'{text} <{self.command} {re.split(r'[ =]', text)[0]}>'
|
||||
content = f'{text} <{self.command} {re.split(r"[ =]", text)[0]}>'
|
||||
return super().__call__('std:option', text, content, *args, **kwargs)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user