Improve string formatting v5 (#33697)
* Improve string formatting v5 * Address review comments
This commit is contained in:
1 parent
39336d3ea3
commit
fca90a8ddc
46 files changed
+221
-252
No files matched your search
@@ -54,9 +54,8 @@ def _yaml_unsupported(
|
||||
constructor: ExtSafeConstructor, node: ruamel.yaml.nodes.Node
|
||||
) -> None:
|
||||
raise UnsupportedYamlError(
|
||||
"Unsupported YAML, you can not use {} in {}".format(
|
||||
node.tag, os.path.basename(constructor.name or "(None)")
|
||||
)
|
||||
f"Unsupported YAML, you can not use {node.tag} in "
|
||||
f"{os.path.basename(constructor.name or '(None)')}"
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user