[glib: 1/2] codegen: Reformat parser.py according to black
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] codegen: Reformat parser.py according to black
- Date: Fri, 18 Feb 2022 10:38:06 +0000 (UTC)
commit f300e883e781c55d30dd599bc70b73cd44b78231
Author: Philip Withnall <pwithnall endlessos org>
Date: Fri Feb 18 01:45:10 2022 +0000
codegen: Reformat parser.py according to black
This fixes the `style-check-diff` CI job.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
gio/gdbus-2.0/codegen/parser.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gio/gdbus-2.0/codegen/parser.py b/gio/gdbus-2.0/codegen/parser.py
index 142754739..cf8ea5229 100644
--- a/gio/gdbus-2.0/codegen/parser.py
+++ b/gio/gdbus-2.0/codegen/parser.py
@@ -77,13 +77,13 @@ class DBusXMLParser:
colon_index = line.find(": ")
if colon_index == -1:
if line.endswith(":"):
- symbol = line[0:len(line) - 1]
+ symbol = line[0 : len(line) - 1]
comment_state = DBusXMLParser.COMMENT_STATE_PARAMS
else:
comment_state = DBusXMLParser.COMMENT_STATE_SKIP
else:
symbol = line[0:colon_index]
- rest_of_line = line[colon_index + 2:].strip()
+ rest_of_line = line[colon_index + 2 :].strip()
if len(rest_of_line) > 0:
body += f"{rest_of_line}\n"
comment_state = DBusXMLParser.COMMENT_STATE_PARAMS
@@ -98,7 +98,7 @@ class DBusXMLParser:
body += f"{orig_line}\n"
else:
param = line[1:colon_index]
- docs = line[colon_index + 2:]
+ docs = line[colon_index + 2 :]
params[param] = docs
else:
comment_state = DBusXMLParser.COMMENT_STATE_BODY
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]