diff options
author | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2024-07-25 18:20:11 +0300 |
---|---|---|
committer | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2024-07-25 19:57:10 +0200 |
commit | 9471fce06e996e4433a8000ead704fda91588d1d (patch) | |
tree | 907685cf835e446acf04cdd176d940bed39e4a4e /bin/test-hid-vs-ui.py | |
parent | 6f3a37d074440d29048239bc9cc0175d90f51d9f (diff) |
bin: fix issues found by Ruff linter
Change-Id: I44e546defb278bb5217ed028dcaebc9fb2d23f0b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171020
Tested-by: Jenkins
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'bin/test-hid-vs-ui.py')
-rwxr-xr-x | bin/test-hid-vs-ui.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/bin/test-hid-vs-ui.py b/bin/test-hid-vs-ui.py index fd5fab80d3c0..603ac42a30ca 100755 --- a/bin/test-hid-vs-ui.py +++ b/bin/test-hid-vs-ui.py @@ -33,7 +33,8 @@ def init_hids(): return subprocess.check_output(['git','grep','hid="[^"]*/[^"]*">','.']) else: repo_dir = '/var/tmp/help.git' - if not os.path.exists(repo_dir):os.makedirs(repo_dir) + if not os.path.exists(repo_dir): + os.makedirs(repo_dir) os.chdir(repo_dir) if not os.path.exists(os.path.join(repo_dir,'config')): @@ -50,7 +51,8 @@ def init_core_files(): core_repo_dir = os.path.dirname(os.path.abspath(os.path.dirname(sys.argv[0]))) local_repo = True - if not os.path.exists(core_repo_dir):os.makedirs(core_repo_dir) + if not os.path.exists(core_repo_dir): + os.makedirs(core_repo_dir) os.chdir(core_repo_dir) if not os.path.exists(os.path.join(core_repo_dir,'.git')): @@ -81,7 +83,8 @@ if __name__ == "__main__": for row in rows: fname, rawtext = row.split(':',1)[0:] hid = rawtext.split('hid="')[1].split('"')[0] - if hid.startswith('.uno'): continue + if hid.startswith('.uno'): + continue uifileraw, compname = hid.rsplit('/',1) uifile = uifileraw + ".ui" # map modules/ etc, which exist only in install |