diff options
| author | John Snow <jsnow@redhat.com> | 2024-06-26 18:21:08 -0400 |
|---|---|---|
| committer | Markus Armbruster <armbru@redhat.com> | 2024-07-06 08:58:24 +0200 |
| commit | f64e753149a0472e381246f0e06e5b293aa40541 (patch) | |
| tree | 3efcc65a08b88571cc8486e8a635752a233cbf67 /scripts/qapi/visit.py | |
| parent | f2cb4026fccfe073f84a4b440e41d3ed0c3134f6 (diff) | |
| download | focaccia-qemu-f64e753149a0472e381246f0e06e5b293aa40541.tar.gz focaccia-qemu-f64e753149a0472e381246f0e06e5b293aa40541.zip | |
qapi: linter fixups
Fix minor irritants to pylint/flake8 et al. (Yes, these need to be guarded by the Python tests. That's a work in progress, a series that's quite likely to follow once I finish this Sphinx project. Please pardon the temporary irritation.) Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Message-ID: <20240626222128.406106-3-jsnow@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'scripts/qapi/visit.py')
| -rw-r--r-- | scripts/qapi/visit.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/qapi/visit.py b/scripts/qapi/visit.py index e766acaac9..12f92e429f 100644 --- a/scripts/qapi/visit.py +++ b/scripts/qapi/visit.py @@ -280,8 +280,9 @@ bool visit_type_%(c_name)s(Visitor *v, const char *name, abort(); default: assert(visit_is_input(v)); - error_setg(errp, "Invalid parameter type for '%%s', expected: %(name)s", - name ? name : "null"); + error_setg(errp, + "Invalid parameter type for '%%s', expected: %(name)s", + name ? name : "null"); /* Avoid passing invalid *obj to qapi_free_%(c_name)s() */ g_free(*obj); *obj = NULL; |