mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 06:56:14 +01:00
python: Reformat some files to keep style-check-diff happy
The version of `black` on the CI server wanted these changes. Make them to keep the `style-check-diff` CI job from constantly failing. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
parent
a4be8577ed
commit
39f33412db
@ -22,11 +22,7 @@ import sys
|
|||||||
# itself. The keyword ‘fixme’ (in upper case) is explicitly allowed because
|
# itself. The keyword ‘fixme’ (in upper case) is explicitly allowed because
|
||||||
# that’s conventionally used as a way of marking a workaround which needs to
|
# that’s conventionally used as a way of marking a workaround which needs to
|
||||||
# be merged for now, but is to be grepped for and reverted or reworked later.
|
# be merged for now, but is to be grepped for and reverted or reworked later.
|
||||||
BANNED_KEYWORDS = [
|
BANNED_KEYWORDS = ["TO" + "DO", "X" + "XX", "W" + "IP"]
|
||||||
"TO" + "DO",
|
|
||||||
"X" + "XX",
|
|
||||||
"W" + "IP",
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
@ -392,7 +392,7 @@ class HeaderCodeGenerator:
|
|||||||
self.outfile.write("G_GNUC_DEPRECATED ")
|
self.outfile.write("G_GNUC_DEPRECATED ")
|
||||||
self.outfile.write(
|
self.outfile.write(
|
||||||
"void %s_set_%s (%s *object, %svalue);\n"
|
"void %s_set_%s (%s *object, %svalue);\n"
|
||||||
% (i.name_lower, p.name_lower, i.camel_name, p.arg.ctype_in,)
|
% (i.name_lower, p.name_lower, i.camel_name, p.arg.ctype_in)
|
||||||
)
|
)
|
||||||
self.outfile.write("\n")
|
self.outfile.write("\n")
|
||||||
|
|
||||||
@ -2443,7 +2443,7 @@ class CodeGenerator:
|
|||||||
self.outfile.write(
|
self.outfile.write(
|
||||||
"void\n"
|
"void\n"
|
||||||
"%s_set_%s (%s *object, %svalue)\n"
|
"%s_set_%s (%s *object, %svalue)\n"
|
||||||
"{\n" % (i.name_lower, p.name_lower, i.camel_name, p.arg.ctype_in,)
|
"{\n" % (i.name_lower, p.name_lower, i.camel_name, p.arg.ctype_in)
|
||||||
)
|
)
|
||||||
self.outfile.write(
|
self.outfile.write(
|
||||||
' g_object_set (G_OBJECT (object), "%s", value, NULL);\n'
|
' g_object_set (G_OBJECT (object), "%s", value, NULL);\n'
|
||||||
|
@ -225,7 +225,7 @@ file-tail
|
|||||||
|
|
||||||
# Known substitutions for generated filenames.
|
# Known substitutions for generated filenames.
|
||||||
result.subs.update(
|
result.subs.update(
|
||||||
{"filename": h_file.name, "basename": os.path.basename(h_file.name),}
|
{"filename": h_file.name, "basename": os.path.basename(h_file.name)}
|
||||||
)
|
)
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
Loading…
Reference in New Issue
Block a user