summaryrefslogtreecommitdiff
path: root/python_modules
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2019-08-13 17:07:44 +0100
committerFrediano Ziglio <fziglio@redhat.com>2019-08-13 18:10:56 +0100
commit7abd2b36d9b897bc6c8b85749e0f7e2aede3d703 (patch)
treed3a5e8525424fa8f7e5f543d5cc15471aa3fe5a8 /python_modules
parent01417b7533f5e0a933e2cd4ff8895cf89a2f8040 (diff)
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>
Diffstat (limited to 'python_modules')
-rw-r--r--python_modules/demarshal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python_modules/demarshal.py b/python_modules/demarshal.py
index d3147b7..6d8dbdd 100644
--- a/python_modules/demarshal.py
+++ b/python_modules/demarshal.py
@@ -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