diff options
author | Patrik Teivonen <patrik.teivonen@qt.io> | 2022-06-29 16:25:28 +0300 |
---|---|---|
committer | Patrik Teivonen <patrik.teivonen@qt.io> | 2022-08-23 08:32:05 +0000 |
commit | 236a0e561241e9639258674518aae0f0f169d0e3 (patch) | |
tree | 690890553dd9eeb15a0ad3b006e9f384b522703c /packaging-tools/optionparser.py | |
parent | 25a59a540a652511f38425a31130dcd85b105166 (diff) |
pylint: Remove unnecessary bits of code
Enable pylint checks, and fix the following anti-patterns:
- superfluous-parens
- no-else-return, no-else-raise, no-else-break, no-else-continue
- unnecessary-comprehension
- pointless-statement, pointless-string-statement
- unnecessary-pass, useless-return
- unused-variable, unused-argument
- useless-object-inheritance
- condition-evals-to-constant
- simplifiable-if-expression
- redundant-unittest-assert
Requires to be submitted with the following change in tqtc-qtsdk:
251649c633eb7acc417cf88fd1c7f885e2bccd7b
Change-Id: I3dd50a7030e06565ae6c04d0a0e3aa07bc68218f
Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
Diffstat (limited to 'packaging-tools/optionparser.py')
-rw-r--r-- | packaging-tools/optionparser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging-tools/optionparser.py b/packaging-tools/optionparser.py index 2ceaff343..381cf8fc0 100644 --- a/packaging-tools/optionparser.py +++ b/packaging-tools/optionparser.py @@ -74,7 +74,7 @@ class PackagingOptions: options = self.config.options(section) for option in options: print(f"{option} = {self.config.get(section, option)}") - print + print() def getPkgOptions(confFilePath): |