mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02:00
gdbus-codegen: Address more black cleanups
This commit is contained in:
@@ -1138,7 +1138,7 @@ class InterfaceInfoBodyCodeGenerator:
|
|||||||
"const %s * const %s[] =\n" % (element_type, array_name_lower)
|
"const %s * const %s[] =\n" % (element_type, array_name_lower)
|
||||||
)
|
)
|
||||||
self.outfile.write("{\n")
|
self.outfile.write("{\n")
|
||||||
for (_, name) in elements:
|
for _, name in elements:
|
||||||
self.outfile.write(" &%s,\n" % name)
|
self.outfile.write(" &%s,\n" % name)
|
||||||
self.outfile.write(" NULL,\n")
|
self.outfile.write(" NULL,\n")
|
||||||
self.outfile.write("};\n")
|
self.outfile.write("};\n")
|
||||||
@@ -2397,7 +2397,6 @@ class CodeGenerator:
|
|||||||
self.outfile.write("}\n")
|
self.outfile.write("}\n")
|
||||||
self.outfile.write("\n")
|
self.outfile.write("\n")
|
||||||
if p.arg.free_func is not None:
|
if p.arg.free_func is not None:
|
||||||
|
|
||||||
self.outfile.write(
|
self.outfile.write(
|
||||||
self.docbook_gen.expand(
|
self.docbook_gen.expand(
|
||||||
"/**\n"
|
"/**\n"
|
||||||
|
@@ -119,7 +119,7 @@ def apply_annotation(iface_list, iface, method, signal, prop, arg, key, value):
|
|||||||
|
|
||||||
def apply_annotations(iface_list, annotation_list):
|
def apply_annotations(iface_list, annotation_list):
|
||||||
# apply annotations given on the command line
|
# apply annotations given on the command line
|
||||||
for (what, key, value) in annotation_list:
|
for what, key, value in annotation_list:
|
||||||
pos = what.find("::")
|
pos = what.find("::")
|
||||||
if pos != -1:
|
if pos != -1:
|
||||||
# signal
|
# signal
|
||||||
|
Reference in New Issue
Block a user