[spice-common,1/4] codegen: Use has_end_attr instead of has_attr("end")

Submitted by Frediano Ziglio on Aug. 13, 2019, 4:56 p.m.

Details

Message ID 20190813165608.32249-1-fziglio@redhat.com
State Accepted
Commit 7abd2b36d9b897bc6c8b85749e0f7e2aede3d703
Headers show
Series "Series without cover letter" ( rev: 1 ) in Spice

Not browsing as part of any series.

Commit Message

Frediano Ziglio Aug. 13, 2019, 4:56 p.m.
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>
---
 python_modules/demarshal.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

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

Comments

On 8/13/19 7:56 PM, Frediano Ziglio wrote:
> 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>

Ack.

Uri.

> ---
>   python_modules/demarshal.py | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 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
>