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:
Ville Skyttä authored and Paulus Schoutsen committed 2020-01-03 14:47:06 +01:00
1 parent 5ad209c6fd
commit fa4fa30461
105 files changed
+241 -314

No files matched your search

+2 -3
View File
@@ -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]),
)