Skip to content

Commit 9909824

Browse files
committed
scripts: Fix f-strings
1 parent 1bc9d03 commit 9909824

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/loader_extension_generator.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -230,12 +230,12 @@ def DescribeBlock(self, command, current_block, out, custom_commands_string = '
230230
return None
231231
elif command.version is not None:
232232
if command.version != current_block:
233-
out.append(f'\n{indent}// ---- Core Vulkan 1.{command.version.name.split('_')[-1]}{custom_commands_string}\n')
233+
out.append(f'\n{indent}// ---- Core Vulkan 1.{command.version.name.split("_")[-1]}{custom_commands_string}\n')
234234
return command.version
235235
else:
236236
# don't repeat unless the first extension is different (while rest can vary)
237237
if not isinstance(current_block, list) or current_block[0].name != command.extensions[0].name:
238-
out.append(f'\n{indent}// ---- {command.extensions[0].name if len(command.extensions) > 0 else ''} extension{custom_commands_string}\n')
238+
out.append(f'\n{indent}// ---- {command.extensions[0].name if len(command.extensions) > 0 else ""} extension{custom_commands_string}\n')
239239
return command.extensions
240240
else:
241241
return current_block
@@ -707,7 +707,7 @@ def OutputLoaderLookupFunc(self, out):
707707
current_block = self.DescribeBlock(command, current_block, out)
708708
if len(command.extensions) == 0:
709709
if cur_type == 'device':
710-
version_check = f' if (dev->should_ignore_device_commands_from_newer_version && api_version < {command.version.nameApi if command.version else 'VK_API_VERSION_1_0'}) return NULL;\n'
710+
version_check = f' if (dev->should_ignore_device_commands_from_newer_version && api_version < {command.version.nameApi if command.version else "VK_API_VERSION_1_0"}) return NULL;\n'
711711
else:
712712
version_check = ''
713713

0 commit comments

Comments
 (0)