mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
contrib: oe-stylize: Fix ambiguous variable names
Fix pycodestyle warnings: oe-stylize.py:439:9: E741 ambiguous variable name 'l' oe-stylize.py:449:17: E741 ambiguous variable name 'l' by switching iterator variables to non-ambiguous characters. Signed-off-by: Niko Mauno <niko.mauno@vaisala.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
81c18e0797
commit
ef36ba48f7
|
|
@ -436,8 +436,8 @@ if __name__ == "__main__":
|
||||||
# -- dump the sanitized .bb file --
|
# -- dump the sanitized .bb file --
|
||||||
addEmptyLine = False
|
addEmptyLine = False
|
||||||
# write comments that are not related to variables nor routines
|
# write comments that are not related to variables nor routines
|
||||||
for l in commentBloc:
|
for c in commentBloc:
|
||||||
olines.append(l)
|
olines.append(c)
|
||||||
# write variables and routines
|
# write variables and routines
|
||||||
previourVarPrefix = "unknown"
|
previourVarPrefix = "unknown"
|
||||||
for k in OE_vars:
|
for k in OE_vars:
|
||||||
|
|
@ -446,8 +446,8 @@ if __name__ == "__main__":
|
||||||
if seen_vars[k] != []:
|
if seen_vars[k] != []:
|
||||||
if addEmptyLine and not k.startswith(previourVarPrefix):
|
if addEmptyLine and not k.startswith(previourVarPrefix):
|
||||||
olines.append("")
|
olines.append("")
|
||||||
for l in seen_vars[k]:
|
for s in seen_vars[k]:
|
||||||
olines.append(l)
|
olines.append(s)
|
||||||
previourVarPrefix = k.split('_')[0] == '' and "unknown" or k.split('_')[0]
|
previourVarPrefix = k.split('_')[0] == '' and "unknown" or k.split('_')[0]
|
||||||
for line in olines:
|
for line in olines:
|
||||||
print(line)
|
print(line)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user