mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2025-12-31 02:41:58 +00:00
codegen: Use has_end_attr instead of has_attr("end")
Just style, they do the same thing, but is more coherent with the rest of the code. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Uri Lublin <uril@redhat.com>
This commit is contained in:
parent
01417b7533
commit
7abd2b36d9
@ -804,7 +804,7 @@ def write_array_parser(writer, member, nelements, array, dest, scope):
|
||||
element_type = array.element_type
|
||||
if member:
|
||||
array_start = dest.get_ref(member.name)
|
||||
at_end = member.has_attr("end")
|
||||
at_end = member.has_end_attr()
|
||||
else:
|
||||
array_start = "end"
|
||||
at_end = True
|
||||
|
||||
Loading…
Reference in New Issue
Block a user