git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4e163e
)
qconfig: Fix pylint error in read_database()
author
Simon Glass
<sjg@chromium.org>
Wed, 17 Jul 2024 15:56:49 +0000
(16:56 +0100)
committer
Simon Glass
<sjg@chromium.org>
Fri, 26 Jul 2024 14:01:05 +0000
(08:01 -0600)
Fix this error by initing the variable before the loop:
tools/qconfig.py:880:22: E0606: Possibly using variable 'defconfig'
before assignment (possibly-used-before-assignment)
Signed-off-by: Simon Glass <sjg@chromium.org>
tools/qconfig.py
patch
|
blob
|
history
diff --git
a/tools/qconfig.py
b/tools/qconfig.py
index
04118d9
..
2492b37
100755
(executable)
--- a/
tools/qconfig.py
+++ b/
tools/qconfig.py
@@
-873,6
+873,7
@@
def read_database():
all_defconfigs = set()
defconfig_db = collections.defaultdict(set)
+ defconfig = None
for line in read_file(CONFIG_DATABASE):
line = line.rstrip()
if not line: # Separator between defconfigs