aboutsummaryrefslogtreecommitdiffstats
path: root/packaging-tools/optionparser.py
diff options
context:
space:
mode:
authorPatrik Teivonen <patrik.teivonen@qt.io>2022-06-16 13:14:31 +0300
committerPatrik Teivonen <patrik.teivonen@qt.io>2022-07-11 09:07:49 +0000
commitf1653086ad448000c46c01f7af8f742d1d5085a2 (patch)
tree7a7074463ec75a100a940abdcbc018755af4b9e3 /packaging-tools/optionparser.py
parentee18c629245767ec020e6d78857b052f71569b2b (diff)
PEP8: Fix anti-patterns
Enable following checks for anti-patterns in flake8: - E502 The backslash is redundant between brackets - E741 Do not use variables named 'I', 'O', or 'l' - E722 Do not use bare except, specify exception instead - W504 Line break occurred after a binary operator Change-Id: I220159877e71a1380c54134c457546e437e43783 Reviewed-by: Akseli Salovaara <akseli.salovaara@qt.io> Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
Diffstat (limited to 'packaging-tools/optionparser.py')
-rw-r--r--packaging-tools/optionparser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging-tools/optionparser.py b/packaging-tools/optionparser.py
index af91c5b17..650efc3c5 100644
--- a/packaging-tools/optionparser.py
+++ b/packaging-tools/optionparser.py
@@ -51,7 +51,7 @@ class PackagingOptions:
dict1[option] = self.config.get(section, option)
if dict1[option] == -1:
print("skip: %s" % option)
- except:
+ except Exception:
print("exception on %s!" % option)
dict1[option] = None
return dict1