From: Jiri Denemark <[email protected]>

children variable is a list returned by getchildren().

Signed-off-by: Jiri Denemark <[email protected]>
---
 src/cpu_map/sync_qemu_models_i386.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cpu_map/sync_qemu_models_i386.py 
b/src/cpu_map/sync_qemu_models_i386.py
index 68f162b964..e144609c82 100755
--- a/src/cpu_map/sync_qemu_models_i386.py
+++ b/src/cpu_map/sync_qemu_models_i386.py
@@ -638,7 +638,7 @@ def update_index(outdir, models):
         group = groups[-1]
         children = group.getchildren()
         if children:
-            last = children()[-1]
+            last = children[-1]
             group_indent = last.tail
             indent = f"{group_indent}  "
             last.tail = indent
-- 
2.54.0

Reply via email to