bin/ui-rules-enforcer.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-)
New commits: commit 7397de2ec5f9f3c2b42861bbfb344c425ffba9ea Author: LeSasse <l.sa...@fz-juelich.de> AuthorDate: Wed Mar 27 09:47:45 2024 +0100 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Thu Mar 28 08:51:44 2024 +0100 tdf#158803 unnecessary semicolons Change-Id: I19cd8fed788297bdc4b6b332b2f1768bc40fd00b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165377 Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> Tested-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/bin/ui-rules-enforcer.py b/bin/ui-rules-enforcer.py index 8c222793d700..f3514d212276 100755 --- a/bin/ui-rules-enforcer.py +++ b/bin/ui-rules-enforcer.py @@ -24,7 +24,7 @@ def add_truncate_multiline(current): insertpos = 0 for child in current: add_truncate_multiline(child) - insertpos = insertpos + 1; + insertpos = insertpos + 1 if not istarget: continue if child.tag == "property": @@ -87,7 +87,7 @@ def replace_button_use_stock(current): insertpos = 0 for child in current: replace_button_use_stock(child) - insertpos = insertpos + 1; + insertpos = insertpos + 1 if not isbutton: continue if child.tag == "property": @@ -342,8 +342,8 @@ def remove_track_visited_links(current): def remove_toolbutton_focus(current): can_focus = None - classname = current.get('class'); - istoolbutton = classname and classname.endswith("ToolButton"); + classname = current.get('class') + istoolbutton = classname and classname.endswith("ToolButton") for child in current: remove_toolbutton_focus(child) if not istoolbutton: @@ -444,7 +444,7 @@ def enforce_menubutton_indicator_consistency(current): if not ismenubutton: continue if child.tag == "property": - insertpos = insertpos + 1; + insertpos = insertpos + 1 attributes = child.attrib if attributes.get("name") == "draw_indicator" or attributes.get("name") == "draw-indicator": draw_indicator = child @@ -476,7 +476,7 @@ def enforce_active_in_group_consistency(current): if not isradiobutton: continue if child.tag == "property": - insertpos = insertpos + 1; + insertpos = insertpos + 1 attributes = child.attrib if attributes.get("name") == "group": group = child @@ -506,7 +506,7 @@ def enforce_toolbar_can_focus(current): if not istoolbar: continue if child.tag == "property": - insertpos = insertpos + 1; + insertpos = insertpos + 1 attributes = child.attrib if attributes.get("name") == "can-focus" or attributes.get("name") == "can_focus": can_focus = child @@ -531,7 +531,7 @@ def enforce_entry_text_column_id_column_for_gtkcombobox(current): if not isgtkcombobox: continue if child.tag == "property": - insertpos = insertpos + 1; + insertpos = insertpos + 1 attributes = child.attrib if attributes.get("name") == "entry_text_column" or attributes.get("name") == "entry-text-column": entrytextcolumn = child @@ -550,7 +550,7 @@ def enforce_entry_text_column_id_column_for_gtkcombobox(current): attributes["name"] = "entry-text-column" entrytextcolumn.text = "0" current.insert(insertpos, entrytextcolumn) - insertpos = insertpos + 1; + insertpos = insertpos + 1 if idcolumn == None: # if there is no id_column, create one idcolumn = etree.Element("property") @@ -569,7 +569,7 @@ def enforce_button_always_show_image(current): if not isbutton: continue if child.tag == "property": - insertpos = insertpos + 1; + insertpos = insertpos + 1 attributes = child.attrib if attributes.get("name") == "always_show_image" or attributes.get("name") == "always-show-image": always_show_image = child