diff options
| author | John Estabrook <jestabro@vyos.io> | 2025-08-07 18:38:40 -0500 |
|---|---|---|
| committer | John Estabrook <jestabro@vyos.io> | 2025-08-07 18:42:39 -0500 |
| commit | ddc8059fb7ecd5fe0e9ffd636e5199d32c06800a (patch) | |
| tree | c300b7d21e3ae9c7d1ec7dbc739449c52ae3127a /python | |
| parent | 97e947c959179db47c2b268d53ca15d9cbb89c76 (diff) | |
| download | vyos-1x-ddc8059fb7ecd5fe0e9ffd636e5199d32c06800a.tar.gz vyos-1x-ddc8059fb7ecd5fe0e9ffd636e5199d32c06800a.zip | |
T7699: formatting
Diffstat (limited to 'python')
| -rwxr-xr-x | python/vyos/xml_ref/generate_op_cache.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/python/vyos/xml_ref/generate_op_cache.py b/python/vyos/xml_ref/generate_op_cache.py index 83900c7c7..f49b2290b 100755 --- a/python/vyos/xml_ref/generate_op_cache.py +++ b/python/vyos/xml_ref/generate_op_cache.py @@ -93,7 +93,7 @@ def translate_command(s: str, pos: list[str]) -> str: # it means the command is incorrect, # e.g., it references "$6" when it only has five words. if re.search(r'_place_holder_', s): - print(f"Command translation failed: {s}") + print(f'Command translation failed: {s}') sys.exit(1) return s @@ -155,7 +155,9 @@ def insert_node( else: name = n.get('name') if not name: - raise ValueError("Node name is required for all node types except <virtualTagNode>") + raise ValueError( + 'Node name is required for all node types except <virtualTagNode>' + ) if path is None: path = [] |
