gdbus-codegen: Address more black cleanups

This commit is contained in:
Marco Trevisan (Treviño) 2023-06-30 16:25:31 +02:00
parent 1b345e411f
commit 4b05e06e1c
2 changed files with 2 additions and 3 deletions

View File

@ -1138,7 +1138,7 @@ class InterfaceInfoBodyCodeGenerator:
"const %s * const %s[] =\n" % (element_type, array_name_lower)
)
self.outfile.write("{\n")
for (_, name) in elements:
for _, name in elements:
self.outfile.write(" &%s,\n" % name)
self.outfile.write(" NULL,\n")
self.outfile.write("};\n")
@ -2397,7 +2397,6 @@ class CodeGenerator:
self.outfile.write("}\n")
self.outfile.write("\n")
if p.arg.free_func is not None:
self.outfile.write(
self.docbook_gen.expand(
"/**\n"

View File

@ -119,7 +119,7 @@ def apply_annotation(iface_list, iface, method, signal, prop, arg, key, value):
def apply_annotations(iface_list, annotation_list):
# apply annotations given on the command line
for (what, key, value) in annotation_list:
for what, key, value in annotation_list:
pos = what.find("::")
if pos != -1:
# signal