Various string cleanups (#30435)
* Remove some unnecessary string concatenations * Replace some simple str.formats with f-strings * Replace some string concatenations with f-strings
This commit is contained in:
parent
5ad209c6fd
commit
fa4fa30461
105 changed files with 241 additions and 314 deletions
|
@ -39,8 +39,7 @@ def main():
|
|||
if hasattr(module, "CONFIG_SCHEMA"):
|
||||
add_msg(
|
||||
"WARNING",
|
||||
"Module {} contains PLATFORM and CONFIG "
|
||||
"schemas".format(module_name),
|
||||
f"Module {module_name} contains PLATFORM and CONFIG schemas",
|
||||
)
|
||||
add_msg("PLATFORM SCHEMA", module_name)
|
||||
continue
|
||||
|
@ -52,7 +51,7 @@ def main():
|
|||
schema_type, schema = _identify_config_schema(module)
|
||||
|
||||
add_msg(
|
||||
"CONFIG_SCHEMA " + str(schema_type),
|
||||
f"CONFIG_SCHEMA {schema_type}",
|
||||
module_name + " " + color("cyan", str(schema)[:60]),
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue