diff options
author | Patrik Teivonen <patrik.teivonen@qt.io> | 2022-06-16 13:33:45 +0300 |
---|---|---|
committer | Patrik Teivonen <patrik.teivonen@qt.io> | 2022-07-11 09:31:06 +0000 |
commit | 8399adccfaf316ac8bd51f511a3e0cd8328aaa51 (patch) | |
tree | dc89968f89af0535f83af81e60d04e203183eae7 /packaging-tools/bld_module.py | |
parent | f1653086ad448000c46c01f7af8f742d1d5085a2 (diff) |
PEP8: Blank lines in function and class definitions, file end
Correct the amount of lines in function and class definitions as well as
at the end of the file. Enable following flake8 checks:
- E301 Expected 1 blank line, found 0
- E302 Expected 2 blank lines, found 0
- E303 Too many blank lines
- E305 Expected 2 blank lines after end of function or class
- E306 Expected 1 blank line before a nested definition
- W391 Blank line at end of file
Change-Id: Ia9bb511ded47df1f43bfffa4be00abfdbda60cae
Reviewed-by: Akseli Salovaara <akseli.salovaara@qt.io>
Diffstat (limited to 'packaging-tools/bld_module.py')
-rwxr-xr-x | packaging-tools/bld_module.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packaging-tools/bld_module.py b/packaging-tools/bld_module.py index d03ce2190..68d0b35fa 100755 --- a/packaging-tools/bld_module.py +++ b/packaging-tools/bld_module.py @@ -51,6 +51,7 @@ SCRIPT_ROOT_DIR = os.path.dirname(os.path.realpath(__file__)) MODULE_SRC_DIR_NAME = 'module_src' MODULE_SRC_DIR = os.path.join(SCRIPT_ROOT_DIR, MODULE_SRC_DIR_NAME) + ############################### # function ############################### @@ -58,6 +59,7 @@ def patch_archive(base_dir, search_strings, qt_install_prefix): erase_qmake_prl_build_dir(base_dir) patch_build_time_paths(base_dir, search_strings, qt_install_prefix) + ############################### # function ############################### @@ -66,6 +68,7 @@ def get_qt_install_prefix(qt_path): ret, qt_install_prefix = do_execute_sub_process(cmd_args, qt_path, get_output=True) return qt_install_prefix.strip() + ############################### # function ############################### @@ -85,6 +88,7 @@ def erase_qmake_prl_build_dir(search_path): if found: print('Erased \'QMAKE_PRL_BUILD_DIR\' from: ' + item) + ############################### # function ############################### |