[libvirt PATCH 10/11] scripts: group-qemu-caps: reorder arguments

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Make some arguments optional.

Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx>
---
 scripts/group-qemu-caps.py | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/scripts/group-qemu-caps.py b/scripts/group-qemu-caps.py
index 36a7d7602f..bcda29a6ca 100755
--- a/scripts/group-qemu-caps.py
+++ b/scripts/group-qemu-caps.py
@@ -61,8 +61,8 @@ def load_caps_flags(lines):
     return capsflags
 
 
-def regroup_caps(original,
-                 trailing_newline, counter_prefix, capsflags):
+def regroup_caps(original, counter_prefix, capsflags=None,
+                 trailing_newline=False):
     step = 5
     fixed = []
     counter = 0
@@ -145,13 +145,11 @@ capsflags = load_caps_flags(header_lines[start:end])
                                           '    );')
 
 header_fixed = regroup_caps(header_lines[start + 1:end],
-                            1,
                             "    ",
-                            None)
+                            trailing_newline=True)
 source_fixed = regroup_caps(source_lines[source_start + 1:source_end],
-                            0,
                             "              ",
-                            capsflags)
+                            capsflags=capsflags)
 
 if not check_wrapping(header_path,
                       header_lines,
-- 
2.31.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux